[X11DRV] Add resolution for Desktop mode

Lionel Ulmer lionel.ulmer at free.fr
Sat Jul 2 12:40:12 CDT 2005


On Sat, Jul 02, 2005 at 06:17:14PM +0200, Maxime Bellengé wrote:
> I didn't see the whole code, but shouldn't you change the #define to 9 ?

Yeah I should have... I am too used to use the 'sizeof' trick to get an
array dimension that I forget to check for this in other people's code :-)

Here is the updated patch (with the 1400x1050 mode added too).

Changelog:
 - add some resolutions to what Desktop mode supports

-- 
		 Lionel Ulmer - http://www.bbrox.org/
-------------- next part --------------
Index: dlls/x11drv/desktop.c
===================================================================
RCS file: /home/wine/wine/dlls/x11drv/desktop.c,v
retrieving revision 1.26
diff -u -r1.26 desktop.c
--- dlls/x11drv/desktop.c	1 Jun 2005 11:08:39 -0000	1.26
+++ dlls/x11drv/desktop.c	2 Jul 2005 17:39:24 -0000
@@ -114,9 +114,9 @@
 static unsigned int max_width;
 static unsigned int max_height;
 
-static const unsigned int widths[]  = {320, 512, 640, 800, 1024, 1152, 1280, 1600};
-static const unsigned int heights[] = {200, 384, 480, 600,  768,  864, 1024, 1200};
-#define NUM_DESKTOP_MODES (8)
+static const unsigned int widths[]  = {320, 400, 512, 640, 800, 1024, 1152, 1280, 1400, 1600};
+static const unsigned int heights[] = {200, 300, 384, 480, 600,  768,  864, 1024, 1050, 1200};
+#define NUM_DESKTOP_MODES (sizeof(widths) / sizeof(widths[0]))
 
 /* create the mode structures */
 static void make_modes(void)


More information about the wine-patches mailing list