From 26d4aa8f73656f25ba845368553dcf178de8306b Mon Sep 17 00:00:00 2001 From: Jinoh Kang Date: Sat, 6 Nov 2021 01:37:30 +0900 Subject: [PATCH] win32u: Remove EMFDRV_StretchDIBits and EMFDRV_SetDIBitsToDevice. Bound rect updates shall ideally be done via a generic mechanism, not by EMFDRV. Signed-off-by: Jinoh Kang Signed-off-by: Huw Davies Signed-off-by: Alexandre Julliard --- dlls/win32u/emfdrv.c | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/dlls/win32u/emfdrv.c b/dlls/win32u/emfdrv.c index e05f11d7b9a..59a6ee69328 100644 --- a/dlls/win32u/emfdrv.c +++ b/dlls/win32u/emfdrv.c @@ -402,24 +402,6 @@ static BOOL CDECL EMFDRV_PatBlt( PHYSDEV dev, struct bitblt_coords *dst, DWORD r return TRUE; } -static INT CDECL EMFDRV_StretchDIBits( PHYSDEV dev, INT x_dst, INT y_dst, INT width_dst, - INT height_dst, INT x_src, INT y_src, INT width_src, - INT height_src, const void *bits, BITMAPINFO *info, - UINT wUsage, DWORD dwRop ) -{ - /* FIXME: Update bound rect */ - return height_src; -} - -static INT CDECL EMFDRV_SetDIBitsToDevice( PHYSDEV dev, INT x_dst, INT y_dst, DWORD width, - DWORD height, INT x_src, INT y_src, UINT startscan, - UINT lines, const void *bits, BITMAPINFO *info, - UINT usage ) -{ - /* FIXME: Update bound rect */ - return lines; -} - static HBITMAP CDECL EMFDRV_SelectBitmap( PHYSDEV dev, HBITMAP hbitmap ) { return 0; @@ -528,7 +510,7 @@ static const struct gdi_dc_funcs emfdrv_driver = NULL, /* pSetBoundsRect */ NULL, /* pSetDCBrushColor*/ NULL, /* pSetDCPenColor*/ - EMFDRV_SetDIBitsToDevice, /* pSetDIBitsToDevice */ + NULL, /* pSetDIBitsToDevice */ NULL, /* pSetDeviceClipping */ NULL, /* pSetDeviceGammaRamp */ EMFDRV_SetPixel, /* pSetPixel */ @@ -536,7 +518,7 @@ static const struct gdi_dc_funcs emfdrv_driver = NULL, /* pStartDoc */ NULL, /* pStartPage */ NULL, /* pStretchBlt */ - EMFDRV_StretchDIBits, /* pStretchDIBits */ + NULL, /* pStretchDIBits */ EMFDRV_StrokeAndFillPath, /* pStrokeAndFillPath */ EMFDRV_StrokePath, /* pStrokePath */ NULL, /* pUnrealizePalette */