gdiplus: Do not use hdc directly in get_graphics_bounds.

This commit is contained in:
Esme Povirk 2024-05-02 15:18:50 -05:00 committed by Alexandre Julliard
parent 8cc552a123
commit b95a40a28f

View file

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