Is this a bug?

Ian Pilcher ian.pilcher at home.com
Tue Jun 5 18:12:27 CDT 2001


While poking around in gdi.h, I came upon the following:

static inline INT WINE_UNUSED INTERNAL_XWSTODS(DC *dc, INT width)
{
    FLOAT floatWidth;

    /* Perform operation with floating point */
    floatWidth = (FLOAT)width;
    INTERNAL_XWSTODS_FLOAT(dc, &floatWidth);

    /* Round to integers */
    return GDI_ROUND(floatWidth);
}

... and a little later ...

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?

-- 
========================================================================
Ian Pilcher                                         ian.pilcher at home.com
========================================================================




More information about the wine-devel mailing list