Re: [AD] Re: [AL] Problems: Grabber and windowing

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


> Works. However, there's an issue: I run X at 1024x768, and gfxtest says
> it's supported for the XWFS driver. However, Allegro programs go into
> windowed at that resolution.

I've attached a workaround that has solved the problem on my system. Could 
you try it ? Thanks in advance.

-- 
Eric Botcazou
--- /home/eric/cvs/allegro/src/x/xwin.c	Fri Nov 15 12:07:49 2002
+++ allegro/src/x/xwin.c	Thu Jan 16 19:09:59 2003
@@ -763,8 +763,15 @@
    BITMAP *bmp;
    XLOCK();
    bmp = _xwin_private_create_screen(drv, w, h, vw, vh, depth, fullscreen);
-   if (bmp == 0)
+   if (bmp == 0) {
       _xwin_private_destroy_screen();
+      /* Work around a weird bug probably caused by KWM.  */
+      if (fullscreen) {
+	 bmp = _xwin_private_create_screen(drv, w, h, vw, vh, depth, fullscreen);
+	 if (bmp == 0)
+	    _xwin_private_destroy_screen();
+      }
+   }
    XUNLOCK();
    return bmp;
 }


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