From c73dbbf12b090cb05819df2615594c91dbf1dc16 Mon Sep 17 00:00:00 2001 From: Jonas Kümmerlin Date: Thu, 11 Jun 2020 11:23:14 +0200 Subject: buffered paint: init in toplevel WM_CREATE the buffered paint initialization is per-thread, doing it in the global ALF_Initialize() is inappropriate. --- alf/alftoplevel.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'alf/alftoplevel.cpp') 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 -- cgit v1.2.3