quartz: Get rid of the resize callback.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
feature/deterministic
Zebediah Figura 2020-05-07 20:50:22 -05:00 committed by Alexandre Julliard
parent 69011b3711
commit 013c024b2b
4 changed files with 2 additions and 28 deletions

View File

@ -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);
};

View File

@ -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,
};

View File

@ -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,
};

View File

@ -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);