Piotr Caban (@piotr) commented about dlls/win32u/dibdrv/graphics.c:
{rect->right, rect->bottom}, {rect->right, rect->top} };
- unsigned int width, height;
unsigned int width, height, points;
lp_to_dp( dc, pts, 4 ); width = max( abs( pts[2].x - pts[0].x ), abs( pts[3].x - pts[1].x )); height = max( abs( pts[2].y - pts[0].y ), abs( pts[3].y - pts[1].y ));
- return (width + height) * 3;
- points = (width * height) * 3;
You're changing `width + height` to `width * height`, is it intentional?