summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/fxge/skia/fx_skia_device.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/fxge/skia/fx_skia_device.cpp b/core/fxge/skia/fx_skia_device.cpp
index 93c3a1d91f..e65411414f 100644
--- a/core/fxge/skia/fx_skia_device.cpp
+++ b/core/fxge/skia/fx_skia_device.cpp
@@ -857,12 +857,15 @@ class SkiaState {
m_drawIndex = m_commandIndex;
m_type = Accumulator::kText;
}
+ if (!hasRSX && !m_rsxform.isEmpty())
+ FlushText();
+
int count = m_positions.count();
m_positions.setCount(nChars + count);
m_glyphs.setCount(nChars + count);
- if (hasRSX) {
+ if (hasRSX)
m_rsxform.setCount(nChars + count);
- }
+
SkScalar flip = m_fontSize < 0 ? -1 : 1;
SkScalar vFlip = flip;
if (pFont->IsVertical())