changeset 925:24b19b905f04

Add the WS_EX_COMPOSITED window flag to toplevel windows on Windows XP or higher to enable double buffering for flicker free redrawing.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 22 Apr 2011 22:26:20 +0000
parents 8a8d2699bd09
children 4519a1d2525e
files win/dw.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/win/dw.c	Fri Apr 22 13:21:48 2011 +0000
+++ b/win/dw.c	Fri Apr 22 22:26:20 2011 +0000
@@ -4457,7 +4457,7 @@
 {
    HWND hwndframe;
    Box *newbox = calloc(sizeof(Box), 1);
-   ULONG flStyleEx = 0;
+   ULONG flStyleEx = IS_XPPLUS ? WS_EX_COMPOSITED : 0;
 
    newbox->pad = 0;
    newbox->type = DW_VERT;