comparison win/dw.c @ 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 81059acce901
children 4519a1d2525e
comparison
equal deleted inserted replaced
924:8a8d2699bd09 925:24b19b905f04
4455 */ 4455 */
4456 HWND API dw_window_new(HWND hwndOwner, char *title, ULONG flStyle) 4456 HWND API dw_window_new(HWND hwndOwner, char *title, ULONG flStyle)
4457 { 4457 {
4458 HWND hwndframe; 4458 HWND hwndframe;
4459 Box *newbox = calloc(sizeof(Box), 1); 4459 Box *newbox = calloc(sizeof(Box), 1);
4460 ULONG flStyleEx = 0; 4460 ULONG flStyleEx = IS_XPPLUS ? WS_EX_COMPOSITED : 0;
4461 4461
4462 newbox->pad = 0; 4462 newbox->pad = 0;
4463 newbox->type = DW_VERT; 4463 newbox->type = DW_VERT;
4464 newbox->count = 0; 4464 newbox->count = 0;
4465 newbox->cinfo.fore = newbox->cinfo.back = -1; 4465 newbox->cinfo.fore = newbox->cinfo.back = -1;