Commit 013c024b authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

quartz: Get rid of the resize callback.

parent 69011b37
......@@ -106,11 +106,7 @@ struct video_window
struct video_window_ops
{
/* Required */
RECT (*get_default_rect)(struct video_window *window);
/* Optional, WinProc Related */
BOOL (*resize)(struct video_window *window, LONG height, LONG width);
HRESULT (*get_current_image)(struct video_window *window, LONG *size, LONG *image);
};
......
......@@ -245,16 +245,6 @@ static RECT video_renderer_get_default_rect(struct video_window *iface)
return defRect;
}
static BOOL video_renderer_resize(struct video_window *iface, LONG Width, LONG Height)
{
struct video_renderer *filter = impl_from_video_window(iface);
TRACE("WM_SIZE %d %d\n", Width, Height);
GetClientRect(iface->hwnd, &filter->window.dst);
return TRUE;
}
static const struct strmbase_renderer_ops renderer_ops =
{
.pfnCheckMediaType = VideoRenderer_CheckMediaType,
......@@ -317,7 +307,6 @@ static HRESULT video_renderer_get_current_image(struct video_window *iface, LONG
static const struct video_window_ops window_ops =
{
.get_default_rect = video_renderer_get_default_rect,
.resize = video_renderer_resize,
.get_current_image = video_renderer_get_current_image,
};
......
......@@ -663,16 +663,6 @@ static RECT vmr_get_default_rect(struct video_window *This)
return defRect;
}
static BOOL vmr_resize(struct video_window *This, LONG Width, LONG Height)
{
struct quartz_vmr *pVMR9 = impl_from_video_window(This);
TRACE("WM_SIZE %d %d\n", Width, Height);
GetClientRect(This->hwnd, &pVMR9->window.dst);
return TRUE;
}
static HRESULT vmr_get_current_image(struct video_window *iface, LONG *size, LONG *image)
{
struct quartz_vmr *filter = impl_from_video_window(iface);
......@@ -737,7 +727,6 @@ out:
static const struct video_window_ops window_ops =
{
.get_default_rect = vmr_get_default_rect,
.resize = vmr_resize,
.get_current_image = vmr_get_current_image,
};
......
......@@ -68,8 +68,8 @@ static LRESULT CALLBACK WndProcW(HWND hwnd, UINT message, WPARAM wparam, LPARAM
}
break;
case WM_SIZE:
if (window->ops->resize)
return window->ops->resize(window, LOWORD(lparam), HIWORD(lparam));
GetClientRect(window->hwnd, &window->dst);
break;
}
return DefWindowProcW(hwnd, message, wparam, lparam);
......
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