[uae] X11 fix was (Re: Source code snapshot)

  • From: Richard Drummond <evilrich@xxxxxxxxxxxxxx>
  • To: uae@xxxxxxxxxxxxx
  • Date: Thu, 16 Sep 2004 02:26:48 -0500

Hi Jeff

On Wednesday 15 September 2004 05:45 pm, Jeff Shepherd wrote:
> It compiles fine here (Redhat 9, Kernel 2.6.7), but I did notice
> something weird that didn't happen before. When the screen "resizes" to
> open in the picasso resolution, it forgets to close the original. When a
> GURU happens, it happens in the original window. Any reset opens a new
> window as well.

Yep. This was caused by a typo in a recent fix I did to X11 driver. Try the 
attached patch.

Cheers,
Rich
Index: xwin.c
===================================================================
RCS file: /cvsroot/uaedev/uae/src/gfx-x11/xwin.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- xwin.c      7 Sep 2004 21:05:23 -0000       1.6
+++ xwin.c      16 Sep 2004 07:24:13 -0000      1.7
@@ -928,7 +928,7 @@
     destroy_dinfo (&ami_dinfo);
     destroy_dinfo (&pic_dinfo);
 
-    if (!mywin) {
+    if (mywin) {
        XDestroyWindow (display, mywin);
        mywin = 0;
     }

Other related posts: