Ezzel a dátummal: Sunday 20 January 2008 05.33.28 Dmitry Timoshkov ezt írta:
> "Szombathelyi György" <[EMAIL PROTECTED]> 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.
Regards,
György
diff --git a/dlls/user32/tests/monitor.c b/dlls/user32/tests/monitor.c
index a723dd1..1f78e36 100644
--- a/dlls/user32/tests/monitor.c
+++ b/dlls/user32/tests/monitor.c
@@ -122,6 +122,7 @@ static const struct vid_mode vid_modes_test[] = {
{640, 480, 0, 0, DM_PELSWIDTH | DM_PELSHEIGHT , 1},
{640, 480, 0, 0, DM_BITSPERPEL , 1},
{640, 480, 0, 0, DM_DISPLAYFREQUENCY, 1},
+ {640, 480, 0, 85, DM_DISPLAYFREQUENCY, 1},
{0, 0, 0, 0, DM_PELSWIDTH, 1},
{0, 0, 0, 0, DM_PELSHEIGHT, 1},