commit 41853dd

Devine Lu Linvega  ·  2025-12-30 23:23:25 +0000 UTC
parent 140ef7e
Added missing arg
1 files changed,  +5, -5
+5, -5
 1@@ -571,14 +571,14 @@ screen_draw_pixel(void)
 2 
 3 /* clang-format off */
 4 
 5-#define GET_SHIFT const int qx = qfx - n * fx;
 6+#define GET_SHIFT(n) const int qx = qfx - n * fx;
 7 #define PUT_PIXEL(n) { dst[n] = (dst[n] & layer_mask) | table[color]; }
 8 #define GET_1BPP const int color = (ch1 >> qx) & 1;
 9 #define GET_2BPP const int color = ((ch1 >> qx) & 1) | ((ch2 >> qx) & 2);
10-#define o1BPP(n) { GET_SHIFT GET_1BPP PUT_PIXEL(n) }
11-#define a1BPP(n) { GET_SHIFT GET_1BPP if(color) PUT_PIXEL(n) }
12-#define o2BPP(n) { GET_SHIFT GET_2BPP PUT_PIXEL(n) }
13-#define a2BPP(n) { GET_SHIFT GET_2BPP if(color) PUT_PIXEL(n) }
14+#define o1BPP(n) { GET_SHIFT(n) GET_1BPP PUT_PIXEL(n) }
15+#define a1BPP(n) { GET_SHIFT(n) GET_1BPP if(color) PUT_PIXEL(n) }
16+#define o2BPP(n) { GET_SHIFT(n) GET_2BPP PUT_PIXEL(n) }
17+#define a2BPP(n) { GET_SHIFT(n) GET_2BPP if(color) PUT_PIXEL(n) }
18 
19 /* clang-format on */
20