# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1303511180 0 # Node ID 24b19b905f0481c6d845fb11e5a3be40104cc744 # Parent 8a8d2699bd090a78af97944d39dd2bd312286fa4 Add the WS_EX_COMPOSITED window flag to toplevel windows on Windows XP or higher to enable double buffering for flicker free redrawing. diff -r 8a8d2699bd09 -r 24b19b905f04 win/dw.c --- 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;