commit fb0c7a6

uint  ·  2026-10-07 18:38:03 +0000 UTC
parent 223fcda
make non cell background default_bg color
3 files changed,  +1, -10
+0, -3
 1@@ -5,9 +5,6 @@
 2 
 3 #include "font.h"
 4 
 5-/* clear a buffer size wxh */
 6-void draw_clear(uint32_t* dst, int w, int h, uint32_t col);
 7-
 8 /* draw a run of properties (look: vvvv) to screen */
 9 void draw_rune(uint32_t* dst, int w, int h, int cl, int rw, int cw, int ch,
10                uint32_t bg);
+1, -1
1@@ -340,7 +340,7 @@ static void run(void)
2 		}
3 
4 		if (redraw_all) {
5-			draw_clear(win->bfb, win->stride, winh, rgba(0, 0, 0, 255));
6+			maus_clear(win, MAUS_COL_ARGB((default_bg >> 24) & 0xff, (default_bg >> 16) & 0xff, (default_bg >> 8) & 0xff, default_bg & 0xff));
7 			term_damage_all(&term);
8 		}
9 
+0, -6
 1@@ -45,12 +45,6 @@ static void blend(uint32_t* dst, int w, int h, int x, int y, uint8_t alpha,
 2 	px[3] = 255;
 3 }
 4 
 5-void draw_clear(uint32_t* dst, int w, int h, uint32_t col)
 6-{
 7-	for (int i = 0; i < w*h; i++)
 8-		dst[i] = col;
 9-}
10-
11 void draw_rune(uint32_t* dst, int w, int h, int cl, int rw, int cw, int ch,
12                uint32_t bg)
13 {