Bitmap: Fix blitshader draw_text path not taking squeezing into account
This commit is contained in:
parent
20081cb07e
commit
c88b4b03d6
|
@ -970,7 +970,7 @@ void Bitmap::drawText(const IntRect &rect, const char *str, int align)
|
||||||
GLMeta::blitEnd();
|
GLMeta::blitEnd();
|
||||||
|
|
||||||
FloatRect bltRect(0, 0,
|
FloatRect bltRect(0, 0,
|
||||||
(float) gpTexSize.x / gpTex2.width,
|
(float) (gpTexSize.x * squeeze) / gpTex2.width,
|
||||||
(float) gpTexSize.y / gpTex2.height);
|
(float) gpTexSize.y / gpTex2.height);
|
||||||
|
|
||||||
BltShader &shader = shState->shaders().blt;
|
BltShader &shader = shState->shaders().blt;
|
||||||
|
|
Loading…
Reference in New Issue