mirror of
https://github.com/david-schmidt/gsport.git
synced 2024-09-27 08:54:30 +00:00
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.
This commit is contained in:
parent
3563ed395e
commit
1b370205c1
@ -217,8 +217,8 @@ x_redraw_status_lines()
|
|||||||
if (g_win_status_debug)
|
if (g_win_status_debug)
|
||||||
{
|
{
|
||||||
HDC localdc = GetDC(g_hwnd_main);
|
HDC localdc = GetDC(g_hwnd_main);
|
||||||
oldtextcolor = SetTextColor(localdc, 0);
|
oldtextcolor = SetTextColor(localdc, RGB(255, 255, 255));
|
||||||
oldbkcolor = SetBkColor(localdc, 0xffffff);
|
oldbkcolor = SetBkColor(localdc, RGB(0, 0, 0));
|
||||||
for(line = 0; line < MAX_STATUS_LINES; line++) {
|
for(line = 0; line < MAX_STATUS_LINES; line++) {
|
||||||
buf = g_status_ptrs[line];
|
buf = g_status_ptrs[line];
|
||||||
if(buf != 0) {
|
if(buf != 0) {
|
||||||
|
@ -346,8 +346,8 @@ void gsportinit(HWND _hwnd)
|
|||||||
g_hwnd_main = _hwnd;
|
g_hwnd_main = _hwnd;
|
||||||
|
|
||||||
HDC localdc = GetDC(g_hwnd_main);
|
HDC localdc = GetDC(g_hwnd_main);
|
||||||
SetTextColor(localdc, 0);
|
SetTextColor(localdc, RGB(0, 0, 0));
|
||||||
SetBkColor(localdc, 0xFFFFFF);
|
SetBkColor(localdc, RGB(255, 255, 255));
|
||||||
|
|
||||||
g_main_cdc = CreateCompatibleDC(localdc);
|
g_main_cdc = CreateCompatibleDC(localdc);
|
||||||
ReleaseDC(g_hwnd_main,localdc);
|
ReleaseDC(g_hwnd_main,localdc);
|
||||||
|
Loading…
Reference in New Issue
Block a user