Huw Davies (@huw) commented about dlls/win32u/dibdrv/graphics.c:
+static unsigned int get_arc_max_points( DC *dc, const RECT *rect ) +{
- POINT pts[4] =
- {
{rect->left, rect->top},
{rect->left, rect->bottom},
{rect->right, rect->bottom},
{rect->right, rect->top}
- };
- unsigned int width, height;
- 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;
Why does this scale as the product of width and height?