From 022503a1072e5bbe9510c73d28f8a18b37d43d4f Mon Sep 17 00:00:00 2001 From: Benjamin Stigsen Date: Mon, 16 Aug 2021 03:59:05 +0200 Subject: [PATCH] gg: fix top left corner pixel not being drawn (#11202) --- vlib/gg/gg.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/gg/gg.v b/vlib/gg/gg.v index c8ecd3f865..3dcc14c9d8 100644 --- a/vlib/gg/gg.v +++ b/vlib/gg/gg.v @@ -290,7 +290,7 @@ pub fn (ctx &Context) draw_empty_rect(x f32, y f32, w f32, h f32, c gx.Color) { sgl.v2f((x + w) * ctx.scale, y * ctx.scale) sgl.v2f((x + w) * ctx.scale, (y + h) * ctx.scale) sgl.v2f(x * ctx.scale, (y + h) * ctx.scale) - sgl.v2f(x * ctx.scale, y * ctx.scale) + sgl.v2f(x * ctx.scale, (y-1) * ctx.scale) sgl.end() }