From dced6f7768e02252af11f9b41017d75c66b47d81 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Tue, 14 Jan 2025 06:33:54 +0100 Subject: Correct examples for changed graphics procs --- graphics.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'graphics.c') diff --git a/graphics.c b/graphics.c index 6a61ac3..2431e8c 100644 --- a/graphics.c +++ b/graphics.c @@ -33,9 +33,9 @@ typedef struct { Pixel_Buffer buffer; vec2 position; vec2 scale; - b8 antialiasing : 1; - b8 alpha : 1; - b8 xor_color : 1; + b8 quick : 1; + b8 alpha : 1; + b8 xor_color : 1; vec4_f32 color; } Brush; @@ -605,7 +605,7 @@ void fill_rectangle(Brush brush, f64 x, f64 y, f64 width, f64 height) { y1 = y0 + height * brush.scale.y; } - if (brush.antialiasing) { + if (!brush.quick) { i64 i0 = (i64) ceil (x0); i64 i1 = (i64) floor(x1); i64 j0 = (i64) ceil (y0); -- cgit v1.2.3