diff options
| author | Pietro Gagliardi <[email protected]> | 2014-10-18 09:25:54 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-10-18 09:26:28 -0400 |
| commit | 0f6e65188af0c4b1d3e4dff17ceb96bbd8ebb271 (patch) | |
| tree | 1e88786955e766e444a9681e5719d31556f2c873 | |
| parent | 1face3a4554022c9336e89822df586560ef62077 (diff) | |
Fixed paintControlBackground() on Windows; there is no longera guarantee of every control being put on top of a container.
| -rw-r--r-- | newctrl/common_windows.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/newctrl/common_windows.c b/newctrl/common_windows.c index b30b132..d4db842 100644 --- a/newctrl/common_windows.c +++ b/newctrl/common_windows.c @@ -106,13 +106,8 @@ void paintControlBackground(HWND hwnd, HDC dc) for (;;) { parent = GetParent(parent); if (parent == NULL) - xpanic("error getting parent container of control in paintControlBackground()", GetLastError()); - // wine sends these messages early, yay... - if (parent == msgwin) - return; - parent = GetParent(parent); - if (parent == NULL) xpanic("error getting parent control of control in paintControlBackground()", GetLastError()); + // wine sends these messages early, yay... if (parent == msgwin) return; if (GetClassNameW(parent, classname, 128) == 0) |
