Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5e30781a authored by Sushil Chauhan's avatar Sushil Chauhan Committed by Giulio Cervera
Browse files

libhwui: Correct transform used for drawing text-shadow.

The model-view transform used for text-shadow in drawText() should
be in sync with the transform used for main text draw.

CRs-Fixed: 342161

Change-Id: I6bb36691c84809aaede65ad5fc1c4a1e90f1ecfc
(cherry picked from commit d4c8be8416c6c3064e43ed80ebacb2a177be3019)
parent 68ac37dc
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2137,7 +2137,11 @@ void OpenGLRenderer::drawText(const char* text, int bytesCount, int count,
        setupDrawShader();
        setupDrawBlending(true, mode);
        setupDrawProgram();
#ifdef QCOM_HARDWARE
        setupDrawModelView(sx, sy, sx + shadow->width, sy + shadow->height, pureTranslate, true);
#else
        setupDrawModelView(sx, sy, sx + shadow->width, sy + shadow->height);
#endif
        setupDrawTexture(shadow->id);
        setupDrawPureColorUniforms();
        setupDrawColorFilterUniforms();