From 1b370205c1ba985266869442c996b0f168046f3c Mon Sep 17 00:00:00 2001 From: Peter Date: Sun, 15 Mar 2015 20:45:16 +0000 Subject: [PATCH] Change the status lines on Windows to use white text on a black background. r355 changed the window background from white to black (which looks good in full screen mode), and this revision changes the status lines similarly for consistency. --- src/win_console.c | 4 ++-- src/win_generic.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/win_console.c b/src/win_console.c index 2ef0f21..8b5df92 100644 --- a/src/win_console.c +++ b/src/win_console.c @@ -217,8 +217,8 @@ x_redraw_status_lines() if (g_win_status_debug) { HDC localdc = GetDC(g_hwnd_main); - oldtextcolor = SetTextColor(localdc, 0); - oldbkcolor = SetBkColor(localdc, 0xffffff); + oldtextcolor = SetTextColor(localdc, RGB(255, 255, 255)); + oldbkcolor = SetBkColor(localdc, RGB(0, 0, 0)); for(line = 0; line < MAX_STATUS_LINES; line++) { buf = g_status_ptrs[line]; if(buf != 0) { diff --git a/src/win_generic.c b/src/win_generic.c index 71896ee..dc45b02 100644 --- a/src/win_generic.c +++ b/src/win_generic.c @@ -346,8 +346,8 @@ void gsportinit(HWND _hwnd) g_hwnd_main = _hwnd; HDC localdc = GetDC(g_hwnd_main); - SetTextColor(localdc, 0); - SetBkColor(localdc, 0xFFFFFF); + SetTextColor(localdc, RGB(0, 0, 0)); + SetBkColor(localdc, RGB(255, 255, 255)); g_main_cdc = CreateCompatibleDC(localdc); ReleaseDC(g_hwnd_main,localdc);