Commit 15612dd7 authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

winemac: Make the swap interval a property of the window, not the context.

parent 5943c580
......@@ -141,6 +141,7 @@ struct macdrv_win_data
unsigned int per_pixel_alpha : 1; /* is window using per-pixel alpha? */
unsigned int minimized : 1; /* is window minimized? */
unsigned int being_dragged : 1; /* is window being dragged under Cocoa's control? */
unsigned int swap_interval : 1; /* GL swap interval for window */
struct window_surface *surface;
struct window_surface *unminimized_surface;
};
......
......@@ -239,6 +239,7 @@ static struct macdrv_win_data *alloc_win_data(HWND hwnd)
{
data->hwnd = hwnd;
data->color_key = CLR_INVALID;
data->swap_interval = 1;
EnterCriticalSection(&win_data_section);
if (!win_datas)
win_datas = CFDictionaryCreateMutable(NULL, 0, NULL, NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment