summaryrefslogtreecommitdiff
path: root/alf/alftoplevel.cpp
diff options
context:
space:
mode:
authorJonas Kümmerlin <jonas@kuemmerlin.eu>2020-06-11 11:23:14 +0200
committerJonas Kümmerlin <jonas@kuemmerlin.eu>2020-06-11 11:23:14 +0200
commitc73dbbf12b090cb05819df2615594c91dbf1dc16 (patch)
tree41a12240e6d5e2a95562811f28002f78e4b6812a /alf/alftoplevel.cpp
parentc41f9dd8ddb935b54f0f57420466e2fc428d61ec (diff)
buffered paint: init in toplevel WM_CREATE
the buffered paint initialization is per-thread, doing it in the global ALF_Initialize() is inappropriate.
Diffstat (limited to 'alf/alftoplevel.cpp')
-rw-r--r--alf/alftoplevel.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/alf/alftoplevel.cpp b/alf/alftoplevel.cpp
index 0a8ece7..11e8599 100644
--- a/alf/alftoplevel.cpp
+++ b/alf/alftoplevel.cpp
@@ -34,6 +34,8 @@ static TCHAR _alf_toplevelClass[28] = {0};
static void
ALF_InitializeToplevelPriv(HWND hwnd, ALFToplevelPriv *priv)
{
+ ALF_Compat_BufferedPaintInit();
+
priv->hwnd = hwnd;
ALF_ListInit(&priv->toplevelList);
ALF_Layout_Init(&priv->layout);
@@ -58,6 +60,8 @@ ALF_DestroyToplevelPriv(ALFToplevelPriv *priv)
ALF_Layout_Clear(&priv->layout);
ALF_Free(priv);
+
+ ALF_Compat_BufferedPaintUnInit();
}
static void