mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
Fix regression in some programs due to CLR_DEFAULT fix. Noticed in
control-spy rebar.exe.
This commit is contained in:
parent
f40fb64d6f
commit
d2ace6addd
1 changed files with 13 additions and 2 deletions
|
@ -20,7 +20,7 @@
|
|||
|
||||
|
||||
/*
|
||||
* Rebar control rev 8b
|
||||
* Rebar control rev 8c
|
||||
*
|
||||
* Copyright 1998, 1999 Eric Kohl
|
||||
*
|
||||
|
@ -2140,8 +2140,19 @@ REBAR_InternalEraseBkGnd (REBAR_INFO *infoPtr, WPARAM wParam, LPARAM lParam, REC
|
|||
/* testing only - make background green to see it */
|
||||
new = RGB(0,128,0);
|
||||
#endif
|
||||
old = SetBkColor (hdc, new);
|
||||
}
|
||||
else {
|
||||
/* In the absence of documentation for Rebar vs. CLR_NONE,
|
||||
* we will use the default BtnFace color. Note documentation
|
||||
* exists for Listview and Imagelist.
|
||||
*/
|
||||
new = infoPtr->clrBtnFace;
|
||||
#if GLATESTING
|
||||
/* testing only - make background green to see it */
|
||||
new = RGB(0,128,0);
|
||||
#endif
|
||||
}
|
||||
old = SetBkColor (hdc, new);
|
||||
|
||||
rect = lpBand->rcBand;
|
||||
TRACE("%s background color=0x%06lx, band (%d,%d)-(%d,%d), clip (%d,%d)-(%d,%d)\n",
|
||||
|
|
Loading…
Reference in a new issue