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

gg: fix gg.scissor_rect behavior on Android (#17229)

This commit is contained in:
Mehmet Ali 2023-02-06 13:26:20 +03:00 committed by GitHub
parent 242d6fa1ff
commit 791ef4b4a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,8 +7,8 @@ import sokol.sgl
// required for ui.DrawDevice interface (with &gg.Context as an instance)
pub fn (ctx &Context) scissor_rect(x int, y int, w int, h int) {
sgl.scissor_rect(int(dpi_scale() * x), int(dpi_scale() * y), int(dpi_scale() * w),
int(dpi_scale() * h), true)
sgl.scissor_rect(int(ctx.scale * x), int(ctx.scale * y), int(ctx.scale * w), int(ctx.scale * h),
true)
}
pub fn (ctx &Context) has_text_style() bool {