Jeffrey Smith (@whydoubt) commented about dlls/gdiplus/graphics.c:
GdipBitmapSetPixel(dst_bitmap, x+dst_x, y+dst_y, color_over_fgpremult(dst_color, src_color)); else GdipBitmapSetPixel(dst_bitmap, x+dst_x, y+dst_y, color_over(dst_color, src_color)); }
While this goes beyond your original scope, I think it may be worth cleaning up the inner loop more extensively while you're at it.
```suggestion:-19+0 ARGB dst_color, src_color = src_row[x];
if (comp_mode == CompositingModeSourceCopy) dst_color = (!(src_color & 0xff000000)) ? 0 : src_color; else if (!(src_color & 0xff000000)) continue; else { GdipBitmapGetPixel(dst_bitmap, x+dst_x, y+dst_y, &dst_color); if (fmt & PixelFormatPAlpha) dst_color = color_over_fgpremult(dst_color, src_color); else dst_color = color_over(dst_color, src_color); }
GdipBitmapSetPixel(dst_bitmap, x+dst_x, y+dst_y, dst_color); ```