mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
Francois Methot (Macadamian)
Fixed the blank color palette tooltip bug by triggering a refresh of the tooltip with UpdateWindow function instead of calling directly the refresh function.
This commit is contained in:
parent
2fc028977d
commit
53f8c60ee9
@ -191,7 +191,6 @@ TOOLTIPS_Show (HWND hwnd, TOOLTIPS_INFO *infoPtr)
|
||||
TTTOOL_INFO *toolPtr;
|
||||
RECT rect, wndrect;
|
||||
SIZE size;
|
||||
HDC hdc;
|
||||
NMHDR hdr;
|
||||
|
||||
if (infoPtr->nTool == -1) {
|
||||
@ -274,9 +273,8 @@ TOOLTIPS_Show (HWND hwnd, TOOLTIPS_INFO *infoPtr)
|
||||
SWP_SHOWWINDOW | SWP_NOACTIVATE);
|
||||
|
||||
/* repaint the tooltip */
|
||||
hdc = GetDC (hwnd);
|
||||
TOOLTIPS_Refresh (hwnd, hdc);
|
||||
ReleaseDC (hwnd, hdc);
|
||||
InvalidateRect(hwnd, NULL, TRUE);
|
||||
UpdateWindow(hwnd);
|
||||
|
||||
SetTimer (hwnd, ID_TIMERPOP, infoPtr->nAutoPopTime, 0);
|
||||
}
|
||||
@ -314,7 +312,6 @@ TOOLTIPS_TrackShow (HWND hwnd, TOOLTIPS_INFO *infoPtr)
|
||||
TTTOOL_INFO *toolPtr;
|
||||
RECT rect;
|
||||
SIZE size;
|
||||
HDC hdc;
|
||||
NMHDR hdr;
|
||||
|
||||
if (infoPtr->nTrackTool == -1) {
|
||||
@ -390,9 +387,8 @@ TOOLTIPS_TrackShow (HWND hwnd, TOOLTIPS_INFO *infoPtr)
|
||||
rect.right - rect.left, rect.bottom - rect.top,
|
||||
SWP_SHOWWINDOW | SWP_NOACTIVATE );
|
||||
|
||||
hdc = GetDC (hwnd);
|
||||
TOOLTIPS_Refresh (hwnd, hdc);
|
||||
ReleaseDC (hwnd, hdc);
|
||||
InvalidateRect(hwnd, NULL, TRUE);
|
||||
UpdateWindow(hwnd);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user