Module: wine Branch: master Commit: 3c14122fa5bf9bd2ef085ff5c7c731e2f73e9ef5 URL: https://gitlab.winehq.org/wine/wine/-/commit/3c14122fa5bf9bd2ef085ff5c7c731e...
Author: Esme Povirk esme@codeweavers.com Date: Sat May 4 20:40:42 2024 +0000
gdiplus: Replace HDC use in draw_driver_string.
---
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 83fca7a9bfa..4dd33e5616b 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -7806,7 +7806,7 @@ static GpStatus draw_driver_string(GpGraphics *graphics, GDIPCONST UINT16 *text, return METAFILE_DrawDriverString((GpMetafile*)graphics->image, text, length, font, format, brush, positions, flags, matrix);
- if (graphics->hdc && !graphics->alpha_hdc && + if (has_gdi_dc(graphics) && !graphics->alpha_hdc && brush->bt == BrushTypeSolidColor && (((GpSolidFill*)brush)->color & 0xff000000) == 0xff000000) stat = GDI32_GdipDrawDriverString(graphics, text, length, font, format,