[Janitorial] ResetDCA->ResetDCW
Dmitry Timoshkov
dmitry at baikal.ru
Mon Jan 12 01:35:08 CST 2004
"Vincent Beron" <vberon at mecano.gme.usherb.ca> wrote:
> Changelog:
> Get rid of a W->A crosscall (ResetDCA->ResetDCW).
> -HDC WINAPI ResetDCW( HDC hdc, const DEVMODEW *devmode )
> +HDC WINAPI ResetDCA( HDC hdc, const DEVMODEA *devmode )
> {
> - return ResetDCA(hdc, (const DEVMODEA*)devmode); /* FIXME */
> + DEVMODEW *devmodeW;
> + HDC ret;
> +
> + if (devmode) devmodeW = GdiConvertToDevmodeW(devmode);
> + else devmodeW = NULL;
> +
> + ret = ResetDCW(hdc, (const DEVMODEW*)devmode);
It would be better to pass a real, newly allocated DEVMODEW* to
ResetDCW(). That way you shouldn't need to cast type of a pointer.
--
Dmitry.
More information about the wine-devel
mailing list