Esme Povirk : gdiplus: Do not use hdc directly in get_graphics_bounds.
Module: wine Branch: master Commit: b95a40a28fa88f2d7c1d13a55e7037e729ce94b7 URL: https://gitlab.winehq.org/wine/wine/-/commit/b95a40a28fa88f2d7c1d13a55e7037e... Author: Esme Povirk <esme(a)codeweavers.com> Date: Thu May 2 15:18:50 2024 -0500 gdiplus: Do not use hdc directly in get_graphics_bounds. --- dlls/gdiplus/graphics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index e849446d2a7..229518307de 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -2268,7 +2268,7 @@ static GpStatus get_graphics_bounds(GpGraphics* graphics, GpRectF* rect) { GpStatus stat = get_graphics_device_bounds(graphics, rect); - if (stat == Ok && graphics->hdc) + if (stat == Ok && has_gdi_dc(graphics)) { GpPointF points[4], min_point, max_point; int i;
participants (1)
-
Alexandre Julliard