Bartosz Kosiorek (@gang65) commented about dlls/gdiplus/graphics.c:
if (dst_space != src_space) {
scale_x = units_to_pixels(1.0, graphics->unit, graphics->xres, graphics->printer_display);
scale_y = units_to_pixels(1.0, graphics->unit, graphics->yres, graphics->printer_display);
if(graphics->unit != UnitDisplay) {
scale_x *= graphics->scale;
scale_y *= graphics->scale;
Don't waste time for multiply floating numbers if it is not needed. Instead invoke `units_to_pixels` functions with `1.0` or `graphics->scale` values