summaryrefslogtreecommitdiff
path: root/graphics.c
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2025-01-20 00:50:40 +0100
committerMitya Selivanov <automainint@guattari.tech>2025-01-20 00:50:40 +0100
commitb863aec19fa95f39ec69e0e0f66d4851c9e3a358 (patch)
treeb39754f211a023c3323d19c2b2c8428503a97fa8 /graphics.c
parentb077de13ec171ab1ebc3b157dd6a2dc94a104f25 (diff)
downloadreduced_system_layer-b863aec19fa95f39ec69e0e0f66d4851c9e3a358.zip
Wayland screenshot
Diffstat (limited to 'graphics.c')
-rwxr-xr-xgraphics.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/graphics.c b/graphics.c
index 95b9a30..90aade1 100755
--- a/graphics.c
+++ b/graphics.c
@@ -248,12 +248,9 @@ static void put_pixel_xor_(Brush brush, i64 x, i64 y) {
}
static void put_pixel_(Brush brush, i64 x, i64 y) {
- if (brush.xor_color)
- put_pixel_xor_(brush, x, y);
- else if (brush.alpha)
- put_pixel_alpha_(brush, x, y);
- else
- put_pixel_color_(brush, x, y);
+ if (brush.xor_color) put_pixel_xor_ (brush, x, y);
+ else if (brush.alpha) put_pixel_alpha_(brush, x, y);
+ else put_pixel_color_(brush, x, y);
}
f64 transform_x_(Brush brush, f64 x) {