diff options
author | Mitya Selivanov <automainint@guattari.tech> | 2025-01-14 06:33:54 +0100 |
---|---|---|
committer | Mitya Selivanov <automainint@guattari.tech> | 2025-01-14 06:33:54 +0100 |
commit | dced6f7768e02252af11f9b41017d75c66b47d81 (patch) | |
tree | 008f4cb816a09b776013d5903b34fb89c01cf042 /graphics.c | |
parent | c9208089c6074575342d529f494295c13269a1aa (diff) | |
download | reduced_system_layer-dced6f7768e02252af11f9b41017d75c66b47d81.zip |
Correct examples for changed graphics procs
Diffstat (limited to 'graphics.c')
-rw-r--r-- | graphics.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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); |