summaryrefslogtreecommitdiff
path: root/graphics.c
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2025-01-14 06:33:54 +0100
committerMitya Selivanov <automainint@guattari.tech>2025-01-14 06:33:54 +0100
commitdced6f7768e02252af11f9b41017d75c66b47d81 (patch)
tree008f4cb816a09b776013d5903b34fb89c01cf042 /graphics.c
parentc9208089c6074575342d529f494295c13269a1aa (diff)
downloadreduced_system_layer-dced6f7768e02252af11f9b41017d75c66b47d81.zip
Correct examples for changed graphics procs
Diffstat (limited to 'graphics.c')
-rw-r--r--graphics.c8
1 files changed, 4 insertions, 4 deletions
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);