From d1f7b324de3cc1adee498ba77ba5c8f9e067fefd Mon Sep 17 00:00:00 2001 From: adelikat Date: Sat, 28 Mar 2009 18:32:57 +0000 Subject: [PATCH] Win32 - Memwatch - use system colors for drawing instead of hardcoded colors --- src/drivers/win/memwatch.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/drivers/win/memwatch.cpp b/src/drivers/win/memwatch.cpp index da8bad14..dcd98cef 100644 --- a/src/drivers/win/memwatch.cpp +++ b/src/drivers/win/memwatch.cpp @@ -265,7 +265,8 @@ void UpdateMemWatch() { if(hwndMemWatch && GameInfo) { - SetTextColor(hdc,RGB(0,0,0)); + //SetTextColor(hdc,RGB(0,0,0)); + SetTextColor(hdc,GetSysColor(COLOR_WINDOWTEXT)); //adelikat-changed colors to Windows System Colors. Hardcoded colors run the risk of incompatibiliyt (for instance if someone uses custom colors and makes dialogs black, addresses would be unreadable) SetBkColor(hdc,GetSysColor(COLOR_3DFACE)); for(int i = 0; i < MWNUM; i++) @@ -279,7 +280,8 @@ void UpdateMemWatch() { if (mwrec.addr == FrozenAddresses[x]) { - SetTextColor(hdc,RGB(0,0,255)); + //SetTextColor(hdc,RGB(0,0,255)); + SetTextColor(hdc,GetSysColor(COLOR_HIGHLIGHT)); } } }