From: Rémi Bernon rbernon@codeweavers.com
--- dlls/winemac.drv/macdrv.h | 1 - dlls/winemac.drv/window.c | 8 -------- 2 files changed, 9 deletions(-)
diff --git a/dlls/winemac.drv/macdrv.h b/dlls/winemac.drv/macdrv.h index 1c4d23298fa..40fa08605c1 100644 --- a/dlls/winemac.drv/macdrv.h +++ b/dlls/winemac.drv/macdrv.h @@ -192,7 +192,6 @@ extern BOOL macdrv_SystemParametersInfo(UINT action, UINT int_param, void *ptr_p unsigned int per_pixel_alpha : 1; /* is window using per-pixel alpha? */ unsigned int minimized : 1; /* is window minimized? */ unsigned int swap_interval : 1; /* GL swap interval for window */ - struct window_surface *surface; };
extern struct macdrv_win_data *get_win_data(HWND hwnd); diff --git a/dlls/winemac.drv/window.c b/dlls/winemac.drv/window.c index de2349e71f1..f7d9dfd76ea 100644 --- a/dlls/winemac.drv/window.c +++ b/dlls/winemac.drv/window.c @@ -674,8 +674,6 @@ static void destroy_cocoa_window(struct macdrv_win_data *data) macdrv_destroy_cocoa_window(data->cocoa_window); data->cocoa_window = 0; data->on_screen = FALSE; - if (data->surface) window_surface_release(data->surface); - data->surface = NULL; }
@@ -1908,12 +1906,6 @@ void macdrv_WindowPosChanged(HWND hwnd, HWND insert_after, UINT swp_flags, const data->window_rect = new_rects->window; data->whole_rect = new_rects->visible; data->client_rect = new_rects->client; - if (data->cocoa_window && !data->ulw_layered) - { - if (surface) window_surface_add_ref(surface); - if (data->surface) window_surface_release(data->surface); - data->surface = surface; - }
TRACE("win %p/%p new_rects %s style %08x flags %08x surface %p\n", hwnd, data->cocoa_window, debugstr_window_rects(new_rects), new_style, swp_flags, surface);