Commit 5b17ba88 authored by Alexandre Julliard's avatar Alexandre Julliard

gdi32: Rename the CLIPPING_UpdateGCRegion function.

We haven't used a GC here for a long time now.
parent b9f09abd
...@@ -79,11 +79,11 @@ BOOL clip_visrect( DC *dc, RECT *dst, const RECT *src ) ...@@ -79,11 +79,11 @@ BOOL clip_visrect( DC *dc, RECT *dst, const RECT *src )
} }
/*********************************************************************** /***********************************************************************
* CLIPPING_UpdateGCRegion * update_dc_clipping
* *
* Update the GC clip region when the ClipRgn or VisRgn have changed. * Update the DC and device clip regions when the ClipRgn or VisRgn have changed.
*/ */
void CLIPPING_UpdateGCRegion( DC * dc ) void update_dc_clipping( DC * dc )
{ {
PHYSDEV physdev = GET_DC_PHYSDEV( dc, pSetDeviceClipping ); PHYSDEV physdev = GET_DC_PHYSDEV( dc, pSetDeviceClipping );
HRGN regions[3]; HRGN regions[3];
...@@ -171,7 +171,7 @@ INT nulldrv_ExtSelectClipRgn( PHYSDEV dev, HRGN rgn, INT mode ) ...@@ -171,7 +171,7 @@ INT nulldrv_ExtSelectClipRgn( PHYSDEV dev, HRGN rgn, INT mode )
if (mirrored) DeleteObject( mirrored ); if (mirrored) DeleteObject( mirrored );
} }
CLIPPING_UpdateGCRegion( dc ); update_dc_clipping( dc );
return ret; return ret;
} }
...@@ -186,7 +186,7 @@ INT nulldrv_ExcludeClipRect( PHYSDEV dev, INT left, INT top, INT right, INT bott ...@@ -186,7 +186,7 @@ INT nulldrv_ExcludeClipRect( PHYSDEV dev, INT left, INT top, INT right, INT bott
if (!dc->hClipRgn) create_default_clip_region( dc ); if (!dc->hClipRgn) create_default_clip_region( dc );
ret = CombineRgn( dc->hClipRgn, dc->hClipRgn, rgn, RGN_DIFF ); ret = CombineRgn( dc->hClipRgn, dc->hClipRgn, rgn, RGN_DIFF );
DeleteObject( rgn ); DeleteObject( rgn );
if (ret != ERROR) CLIPPING_UpdateGCRegion( dc ); if (ret != ERROR) update_dc_clipping( dc );
return ret; return ret;
} }
...@@ -208,7 +208,7 @@ INT nulldrv_IntersectClipRect( PHYSDEV dev, INT left, INT top, INT right, INT bo ...@@ -208,7 +208,7 @@ INT nulldrv_IntersectClipRect( PHYSDEV dev, INT left, INT top, INT right, INT bo
ret = CombineRgn( dc->hClipRgn, dc->hClipRgn, rgn, RGN_AND ); ret = CombineRgn( dc->hClipRgn, dc->hClipRgn, rgn, RGN_AND );
DeleteObject( rgn ); DeleteObject( rgn );
} }
if (ret != ERROR) CLIPPING_UpdateGCRegion( dc ); if (ret != ERROR) update_dc_clipping( dc );
return ret; return ret;
} }
...@@ -223,7 +223,7 @@ INT nulldrv_OffsetClipRgn( PHYSDEV dev, INT x, INT y ) ...@@ -223,7 +223,7 @@ INT nulldrv_OffsetClipRgn( PHYSDEV dev, INT x, INT y )
y = MulDiv( y, dc->vportExtY, dc->wndExtY ); y = MulDiv( y, dc->vportExtY, dc->wndExtY );
if (dc->layout & LAYOUT_RTL) x = -x; if (dc->layout & LAYOUT_RTL) x = -x;
ret = OffsetRgn( dc->hClipRgn, x, y ); ret = OffsetRgn( dc->hClipRgn, x, y );
CLIPPING_UpdateGCRegion( dc ); update_dc_clipping( dc );
} }
return ret; return ret;
} }
...@@ -277,7 +277,7 @@ void CDECL __wine_set_visible_region( HDC hdc, HRGN hrgn, const RECT *vis_rect ) ...@@ -277,7 +277,7 @@ void CDECL __wine_set_visible_region( HDC hdc, HRGN hrgn, const RECT *vis_rect )
dc->vis_rect = *vis_rect; dc->vis_rect = *vis_rect;
dc->hVisRgn = hrgn; dc->hVisRgn = hrgn;
DC_UpdateXforms( dc ); DC_UpdateXforms( dc );
CLIPPING_UpdateGCRegion( dc ); update_dc_clipping( dc );
release_dc_ptr( dc ); release_dc_ptr( dc );
} }
...@@ -560,7 +560,7 @@ INT WINAPI SetMetaRgn( HDC hdc ) ...@@ -560,7 +560,7 @@ INT WINAPI SetMetaRgn( HDC hdc )
} }
/* else nothing to do */ /* else nothing to do */
/* Note: no need to call CLIPPING_UpdateGCRegion, the overall clip region hasn't changed */ /* Note: no need to call update_dc_clipping, the overall clip region hasn't changed */
ret = GetRgnBox( dc->hMetaRgn, &dummy ); ret = GetRgnBox( dc->hMetaRgn, &dummy );
release_dc_ptr( dc ); release_dc_ptr( dc );
......
...@@ -242,7 +242,7 @@ void DC_InitDC( DC* dc ) ...@@ -242,7 +242,7 @@ void DC_InitDC( DC* dc )
SelectObject( dc->hSelf, dc->hPen ); SelectObject( dc->hSelf, dc->hPen );
SelectObject( dc->hSelf, dc->hBrush ); SelectObject( dc->hSelf, dc->hBrush );
SelectObject( dc->hSelf, dc->hFont ); SelectObject( dc->hSelf, dc->hFont );
CLIPPING_UpdateGCRegion( dc ); update_dc_clipping( dc );
SetVirtualResolution( dc->hSelf, 0, 0, 0, 0 ); SetVirtualResolution( dc->hSelf, 0, 0, 0, 0 );
} }
...@@ -490,7 +490,7 @@ BOOL nulldrv_RestoreDC( PHYSDEV dev, INT level ) ...@@ -490,7 +490,7 @@ BOOL nulldrv_RestoreDC( PHYSDEV dev, INT level )
dc->hMetaRgn = 0; dc->hMetaRgn = 0;
} }
DC_UpdateXforms( dc ); DC_UpdateXforms( dc );
CLIPPING_UpdateGCRegion( dc ); update_dc_clipping( dc );
SelectObject( dev->hdc, dcs->hBitmap ); SelectObject( dev->hdc, dcs->hBitmap );
SelectObject( dev->hdc, dcs->hBrush ); SelectObject( dev->hdc, dcs->hBrush );
...@@ -780,7 +780,7 @@ HDC WINAPI ResetDCW( HDC hdc, const DEVMODEW *devmode ) ...@@ -780,7 +780,7 @@ HDC WINAPI ResetDCW( HDC hdc, const DEVMODEW *devmode )
dc->vis_rect.bottom = GetDeviceCaps( hdc, DESKTOPVERTRES ); dc->vis_rect.bottom = GetDeviceCaps( hdc, DESKTOPVERTRES );
if (dc->hVisRgn) DeleteObject( dc->hVisRgn ); if (dc->hVisRgn) DeleteObject( dc->hVisRgn );
dc->hVisRgn = 0; dc->hVisRgn = 0;
CLIPPING_UpdateGCRegion( dc ); update_dc_clipping( dc );
} }
release_dc_ptr( dc ); release_dc_ptr( dc );
} }
......
...@@ -213,7 +213,7 @@ extern BOOL get_brush_bitmap_info( HBRUSH handle, BITMAPINFO *info, void **bits, ...@@ -213,7 +213,7 @@ extern BOOL get_brush_bitmap_info( HBRUSH handle, BITMAPINFO *info, void **bits,
/* clipping.c */ /* clipping.c */
extern BOOL clip_visrect( DC *dc, RECT *dst, const RECT *src ) DECLSPEC_HIDDEN; extern BOOL clip_visrect( DC *dc, RECT *dst, const RECT *src ) DECLSPEC_HIDDEN;
extern void CLIPPING_UpdateGCRegion( DC * dc ) DECLSPEC_HIDDEN; extern void update_dc_clipping( DC * dc ) DECLSPEC_HIDDEN;
/* Return the total DC region (if any) */ /* Return the total DC region (if any) */
static inline HRGN get_dc_region( DC *dc ) static inline HRGN get_dc_region( DC *dc )
......
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