1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

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

This commit is contained in:
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

View File

@ -30,7 +30,7 @@ pub mut:
* 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()
}
@ -188,8 +188,8 @@ pub fn (tf_skl TTF_render_Sokol) draw_text_bmp(ctx &gg.Context, x f32, y f32) {
0,
1,
0,
x,
y,
x * ctx.scale,
y * ctx.scale,
0,
1,
]