Huw Davies (@huw) commented about dlls/win32u/font.c:
}
/* scale width and height but don't mirror them */
static inline INT width_to_LP( DC *dc, INT width ) {
- return GDI_ROUND( (double)width * fabs( dc->xformVport2World.eM11 ));
- return INTERNAL_XDSTOWS( dc, width );
}
static inline INT height_to_LP( DC *dc, INT height ) {
- return GDI_ROUND( (double)height * fabs( dc->xformVport2World.eM22 ));
- return INTERNAL_YDSTOWS( dc, height );
+}
So now `INTERNAL_XDSTOWS()` and `width_to_LP()` are the same. If this is really what we want we should unify them before changing the implementation.
Also, `hypot()` may be useful here.