x.ttf: apply ctx.scale for x and y in draw_text_bmp (#10598)
parent
1492eae27d
commit
cdb31119f3
|
@ -30,7 +30,7 @@ pub mut:
|
||||||
* Render functions
|
* Render functions
|
||||||
*
|
*
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
fn (mut tf_skl TTF_render_Sokol) format_texture() {
|
pub fn (mut tf_skl TTF_render_Sokol) format_texture() {
|
||||||
tf_skl.bmp.format_texture()
|
tf_skl.bmp.format_texture()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -188,8 +188,8 @@ pub fn (tf_skl TTF_render_Sokol) draw_text_bmp(ctx &gg.Context, x f32, y f32) {
|
||||||
0,
|
0,
|
||||||
1,
|
1,
|
||||||
0,
|
0,
|
||||||
x,
|
x * ctx.scale,
|
||||||
y,
|
y * ctx.scale,
|
||||||
0,
|
0,
|
||||||
1,
|
1,
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue