Win32 - Memwatch - use system colors for drawing instead of hardcoded colors

This commit is contained in:
adelikat 2009-03-28 18:32:57 +00:00
parent 0ecbb2dd1a
commit d1f7b324de
1 changed files with 4 additions and 2 deletions

View File

@ -265,7 +265,8 @@ void UpdateMemWatch()
{ {
if(hwndMemWatch && GameInfo) 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)); SetBkColor(hdc,GetSysColor(COLOR_3DFACE));
for(int i = 0; i < MWNUM; i++) for(int i = 0; i < MWNUM; i++)
@ -279,7 +280,8 @@ void UpdateMemWatch()
{ {
if (mwrec.addr == FrozenAddresses[x]) if (mwrec.addr == FrozenAddresses[x])
{ {
SetTextColor(hdc,RGB(0,0,255)); //SetTextColor(hdc,RGB(0,0,255));
SetTextColor(hdc,GetSysColor(COLOR_HIGHLIGHT));
} }
} }
} }