From 88c4a64a15e413a5cbc946ba6fcfe01472a8e6a9 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sun, 10 Apr 2022 10:39:55 +0300 Subject: [PATCH] examples: make examples/sokol/drawing.v more symmetrical --- examples/sokol/drawing.v | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/examples/sokol/drawing.v b/examples/sokol/drawing.v index 056908da4c..836ab54338 100644 --- a/examples/sokol/drawing.v +++ b/examples/sokol/drawing.v @@ -17,6 +17,8 @@ fn main() { } title := 'Sokol Drawing Template' desc := sapp.Desc{ + width: 640 + height: 480 user_data: state init_userdata_cb: init frame_userdata_cb: frame @@ -49,9 +51,9 @@ fn draw() { sgl.matrix_mode_projection() sgl.ortho(0.0, f32(sapp.width()), f32(sapp.height()), 0.0, -1.0, 1.0) sgl.c4b(255, 0, 0, 128) - draw_hollow_rect(10, 10, 100, 30) - sgl.c4b(25, 150, 0, 128) - draw_filled_rect(10, 150, 80, 40) + draw_hollow_rect(220, 140, 200, 200) + sgl.c4b(25, 150, 255, 128) + draw_filled_rect(270, 190, 100, 100) // line(0, 0, 500, 500) }