font dialog patch #8
Rein Klazes
rklazes at xs4all.nl
Thu Dec 4 13:11:15 CST 2003
Hi,
today's patch.
Changelog:
dlls/commdlg : fontdlg.c
Correct the test for the ODS_SELECTED bit in the WM_DRAWITEM
message handler.
Rein.
--
Rein Klazes
rklazes at xs4all.nl
-------------- next part --------------
--- wine/dlls/commdlg/fontdlg.c 2003-12-04 15:45:54.000000000 +0100
+++ mywine/dlls/commdlg/fontdlg.c 2003-12-04 19:56:05.000000000 +0100
@@ -823,7 +823,7 @@
{
if (lpdi->CtlType == ODT_COMBOBOX)
{
- if (lpdi->itemState ==ODS_SELECTED)
+ if (lpdi->itemState & ODS_SELECTED)
{
hBrush=GetSysColorBrush(COLOR_HIGHLIGHT);
oldText=SetTextColor(lpdi->hDC, GetSysColor(COLOR_HIGHLIGHTTEXT));
@@ -898,7 +898,7 @@
default:
return TRUE; /* this should never happen */
}
- if (lpdi->itemState == ODS_SELECTED)
+ if (lpdi->itemState & ODS_SELECTED)
{
SetTextColor(lpdi->hDC, oldText);
SetBkColor(lpdi->hDC, oldBk);
More information about the wine-patches
mailing list