diff options
Diffstat (limited to 'src/user/popups')
-rw-r--r-- | src/user/popups/info.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/user/popups/info.c b/src/user/popups/info.c index 9a24ad5..5b3f6ae 100644 --- a/src/user/popups/info.c +++ b/src/user/popups/info.c @@ -11,9 +11,6 @@ #define PADDING 6 #define FONT "berry" -#define BG_COLOR 0x07 -#define FG_COlOR 0x10 - static const struct font_info *info_font = 0; static const struct key_packet info_quits[] = { @@ -48,7 +45,7 @@ void info_popup(struct popup *into, const char *msg, uint8_t fg, uint8_t bg) { for (uint32_t y = 0; y < height; ++y) for (uint32_t x = 0; x < pitch; ++x) - pixbuf[y * pitch + x] = BG_COLOR; + pixbuf[y * pitch + x] = bg; uint32_t my = 0; uint32_t mx = 0; @@ -59,7 +56,7 @@ void info_popup(struct popup *into, const char *msg, uint8_t fg, uint8_t bg) { mx = 0; } else - put_char(info_font, *msg, pixbuf + (my * info_font->space_height + PADDING) * pitch + mx++ * info_font->space_width + PADDING, pitch, BG_COLOR, FG_COlOR); + put_char(info_font, *msg, pixbuf + (my * info_font->space_height + PADDING) * pitch + mx++ * info_font->space_width + PADDING, pitch, bg, fg); } into->pixbuf = pixbuf; |