[PATCH] Wine's ChangeDisplaySettingsEx is too strict
gyurco at freemail.hu
Sun Jan 20 10:25:22 CST 2008
Ezzel a dátummal: Sunday 20 January 2008 05.33.28 Dmitry Timoshkov ezt írta:
> "Szombathelyi György" <gyurco at freemail.hu> wrote:
> > The game changes display resolution with ChangeDisplaySettingsEx, but
> > doesn't specify DM_PELSWIDTH and DM_PELSHEIGHT at devmode->dmFields, so
> > it quits early with an error message. Of course, it works on windows. So
> > I attached a patch which make wine WinXP compatible...Hope you accept it.
> Please add a test case for this to dlls/user32/tests/monitor.c.
Here's the test (the game above uses similar parameters, only
DM_DISPLAYFREQUENCY in dmFields, but all other dmxxx members are filled in).
But now test 9 and 10 fails with my patch (the return code from
ChangeDisplaySettingsEx now 0=OK). Are they really fails on Windows? The last
test failed already in wine, without my patch.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 690 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20080120/8bb68e1c/attachment.diff
More information about the wine-devel