[AD] no linux windows < 80x80

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Recently, I tried to compile the DUMB(a music lib) examples in Linux,
and noticed that they don't create a window, because it is smaller than
80x80 pixels. In window this works. And looking at the code, I found
some if lines explaining it - see the attached patch.

I think whoever wrote those lines had a reason for it though, so - any
Linux experts know why there is this seemingly arbitrary size limit?
Else, the attached patch removes the limits.

Index: src/x/xwin.c
===================================================================
RCS file: /cvsroot/alleg/allegro/src/x/xwin.c,v
retrieving revision 1.44
diff -u -r1.44 xwin.c
--- src/x/xwin.c	14 May 2002 20:53:55 -0000	1.44
+++ src/x/xwin.c	27 Aug 2002 07:47:21 -0000
@@ -663,12 +663,6 @@
       h = 200;
    }
 
-   if ((w < 80) || (h < 80) || (w > 4096) || (h > 4096)
-       || (vw > 4096) || (vh > 4096)) {
-      ustrzcpy(allegro_error, ALLEGRO_ERROR_SIZE, get_config_text("Unsupported screen size"));
-      return 0;
-   }
-
    if (vw < w)
       vw = w;
    if (vh < h)
@@ -2765,11 +2759,6 @@
    if ((w == 0) && (h == 0)) {
       w = 320;
       h = 200;
-   }
-
-   if ((w < 80) || (h < 80) || (w > 4096) || (h > 4096)) {
-      ustrzcpy(allegro_error, ALLEGRO_ERROR_SIZE, get_config_text("Unsupported screen size"));
-      return 0;
    }
 
    if (vw < w)


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/