summaryrefslogtreecommitdiff
path: root/alf/alfnotebook.cpp
diff options
context:
space:
mode:
authorJonas Kümmerlin <jonas@kuemmerlin.eu>2020-04-21 16:23:36 +0200
committerJonas Kümmerlin <jonas@kuemmerlin.eu>2020-04-21 16:23:36 +0200
commite40c5381c1338ab0bf7e6d409180d95c8d8e458d (patch)
tree6a8baea0968683efd73712bbb7b523b407193d87 /alf/alfnotebook.cpp
parent079fdbf1a553e314cbba386b85ca92b67c61b8df (diff)
fix GDI leak in notebook
Diffstat (limited to 'alf/alfnotebook.cpp')
-rw-r--r--alf/alfnotebook.cpp2
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 };