Esme Povirk (@madewokherd) commented about dlls/gdiplus/graphics.c:
rect->Height = GetDeviceCaps(graphics->hdc, VERTRES);
- }
- return stat;
+}
+static void poly_clip(GpGraphics *graphics, POINT *pti, BYTE *tp, int count) +{
- RectF rect;
- BYTE *tpcopy = heap_alloc_zero(count * sizeof(BYTE));
- memcpy(tpcopy, tp, count);
- get_graphics_device_bounds(graphics, &rect);
- /* Ignore data that is not meant for drawing */
- if (rect.Width == 1 && rect.Height == 1)
This doesn't seem right to me. A 1x1 image or window could still be valid.