diff options
Diffstat (limited to 'alf/alfnotebook.cpp')
| -rw-r--r-- | alf/alfnotebook.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alf/alfnotebook.cpp b/alf/alfnotebook.cpp index 1db4011..a2a21f1 100644 --- a/alf/alfnotebook.cpp +++ b/alf/alfnotebook.cpp @@ -180,7 +180,7 @@ ALF_Notebook_InternalPaint(HWND hwnd, ALFNotebookPriv *priv, HDC dc, RECT *f) MapWindowRect(priv->hwndTabCtrl, hwnd, &r); SIZE s; - if (SUCCEEDED(ALF_Compat_GetThemePartSize(priv->hTheme, GetDC(NULL), TABP_BODY, 0, NULL, TS_TRUE, &s))) { + if (SUCCEEDED(ALF_Compat_GetThemePartSize(priv->hTheme, dc, TABP_BODY, 0, NULL, TS_TRUE, &s))) { // windows dialog tab panes tile the background horizontally for (int x = r.left; x < r.right; x += s.cx) { RECT r2 = { x, r.top, x + s.cx, r.bottom }; |
