x.ttf: apply ctx.scale for x and y in draw_text_bmp (#10598)

pull/10600/head
R cqls 2021-06-28 12:32:17 +02:00 committed by GitHub
parent 1492eae27d
commit cdb31119f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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,
] ]