diff options
Diffstat (limited to 'core/jni')
-rw-r--r-- | core/jni/android_view_GLES20Canvas.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/jni/android_view_GLES20Canvas.cpp b/core/jni/android_view_GLES20Canvas.cpp index 50eb869..27d3f39 100644 --- a/core/jni/android_view_GLES20Canvas.cpp +++ b/core/jni/android_view_GLES20Canvas.cpp @@ -686,8 +686,8 @@ static void renderTextLayout(OpenGLRenderer* renderer, Layout* layout, MinikinFontSkia* mfs = static_cast<MinikinFontSkia *>(layout->getFont(i)); skFace = mfs->GetSkTypeface(); glyphs[i] = layout->getGlyphId(i); - pos[2 * i] = SkFloatToScalar(layout->getX(i)); - pos[2 * i + 1] = SkFloatToScalar(layout->getY(i)); + pos[2 * i] = layout->getX(i); + pos[2 * i + 1] = layout->getY(i); if (i > 0 && skFace != lastFace) { paint->setTypeface(lastFace); size_t glyphsCount = i - start; |