Is this a bug?

Huw D M Davies h.davies1 at physics.ox.ac.uk
Wed Jun 6 05:47:49 CDT 2001


On Tue, Jun 05, 2001 at 06:12:27PM -0500, Ian Pilcher wrote:
> While poking around in gdi.h, I came upon the following:
> 
> static inline INT WINE_UNUSED INTERNAL_YWSTODS(DC *dc, INT height)
> {
>     FLOAT floatHeight;
> 
>     /* Perform operation with floating point */
>     floatHeight = (FLOAT)height;
>     INTERNAL_XWSTODS_FLOAT(dc, &floatHeight);
> 
>     /* Round to integers */
>     return GDI_ROUND(floatHeight);
> }
> 
> Shouldn't one of these (probably INTERNAL_YWSTODS) be calling
> INTERNAL_YWSTODS_FLOAT instead of INTERNAL_XWSTODS_FLOAT?

Yes, well spotted.  This one should indeed be calling
INTERNAL_YWSTODS_FLOAT  [This stuff is a mess anyway, but that's a
different sotry...].

Huw.





More information about the wine-devel mailing list