From b7e4e6fb0bbfdd91f969be5011c0b76ef0ab2e2d Mon Sep 17 00:00:00 2001 From: Jonas Kümmerlin Date: Thu, 11 Jun 2020 14:38:31 +0200 Subject: double buffering implementation for pre-Vista systems label is now drawn double-buffered to reduce flicker --- alf/alfcompat.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'alf/alfcompat.h') diff --git a/alf/alfcompat.h b/alf/alfcompat.h index 5fa37e6..5360d9d 100644 --- a/alf/alfcompat.h +++ b/alf/alfcompat.h @@ -56,6 +56,7 @@ long ALF_GetAveCharWidth(HDC hdc); typedef void *ALF_Compat_HANIMATIONBUFFER; +typedef void *ALF_Compat_HPAINTBUFFER; typedef enum { ALF_Compat_BPAS_NONE, @@ -129,7 +130,9 @@ extern BOOL (WINAPI *ALF_Compat_TrackMouseEvent)(LPTRACKMOUSEEVENT tme); extern HRESULT (WINAPI *ALF_Compat_BufferedPaintInit)(void); extern HRESULT (WINAPI *ALF_Compat_BufferedPaintUnInit)(void); extern ALF_Compat_HANIMATIONBUFFER (WINAPI *ALF_Compat_BeginBufferedAnimation)(HWND,HDC,const RECT *,DWORD,ALF_Compat_BP_PAINTPARAMS *,ALF_Compat_BP_ANIMATIONPARAMS *,HDC *,HDC *); +extern ALF_Compat_HPAINTBUFFER (WINAPI *ALF_Compat_BeginBufferedPaint)(HDC,const RECT *,DWORD,ALF_Compat_BP_PAINTPARAMS *,HDC *); extern HRESULT (WINAPI *ALF_Compat_EndBufferedAnimation)(ALF_Compat_HANIMATIONBUFFER,BOOL); +extern HRESULT (WINAPI *ALF_Compat_EndBufferedPaint)(ALF_Compat_HPAINTBUFFER,BOOL); extern BOOL (WINAPI *ALF_Compat_BufferedPaintRenderAnimation)(HWND,HDC); extern HRESULT (WINAPI *ALF_Compat_GetThemeTransitionDuration)(HTHEME,int,int,int,int,DWORD*); extern HRESULT (WINAPI *ALF_Compat_GetThemeColor)(HTHEME,int,int,int,COLORREF*); -- cgit v1.2.3