Alexandre Julliard pushed to branch master at wine / wine
Commits:
-
6d0f2f67
by Fan WenJie at 2024-07-23T21:29:16+02:00
1 changed file:
Changes:
... | ... | @@ -1914,8 +1914,8 @@ static void add_virtual_modes( struct device_manager_ctx *ctx, const DEVMODEW *c |
1914 | 1914 | mode.dmPelsWidth = screen_sizes[j].width;
|
1915 | 1915 | mode.dmPelsHeight = screen_sizes[j].height;
|
1916 | 1916 | |
1917 | - if (mode.dmPelsWidth > maximum->dmPelsWidth || mode.dmPelsHeight > maximum->dmPelsWidth) continue;
|
|
1918 | - if (mode.dmPelsWidth == maximum->dmPelsWidth && mode.dmPelsHeight == maximum->dmPelsWidth) continue;
|
|
1917 | + if (mode.dmPelsWidth > maximum->dmPelsWidth || mode.dmPelsHeight > maximum->dmPelsHeight) continue;
|
|
1918 | + if (mode.dmPelsWidth == maximum->dmPelsWidth && mode.dmPelsHeight == maximum->dmPelsHeight) continue;
|
|
1919 | 1919 | if (mode.dmPelsWidth == initial->dmPelsWidth && mode.dmPelsHeight == initial->dmPelsHeight) continue;
|
1920 | 1920 | modes[modes_count++] = mode;
|
1921 | 1921 | }
|