[xiph-cvs] cvs commit: snatch x11.c

Monty xiphmont at xiph.org
Sun Nov 11 13:08:37 PST 2001



xiphmont    01/11/11 13:08:37

  Modified:    .        x11.c
  Log:
  fixed expose bug (pixmap logo replace) that resulted from going to
  purely Xlib hooks (cosmetic)

Revision  Changes    Path
1.18      +4 -4      snatch/x11.c

Index: x11.c
===================================================================
RCS file: /usr/local/cvsroot/snatch/x11.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- x11.c	2001/11/10 13:21:15	1.17
+++ x11.c	2001/11/11 21:08:36	1.18
@@ -150,7 +150,6 @@
   event.window=rpplay_window;
   event.width=rpplay_width;
   event.height=rpplay_height;
-  logo_y=-1;
 
   XSendEvent(Xdisplay,(Window)rpplay_window,0,0,(XEvent *)&event);
 }
@@ -601,7 +600,6 @@
       /* after a resize, look where to put the logo... */
       if(logo_y==-1 && height==rpplay_height && width==rpplay_width){
         int test;      
-	
         play_blackupper=42;
         play_blacklower=-1;
         play_blackleft=-1;
@@ -634,7 +632,9 @@
             for(blacklower=test;blacklower<height;blacklower++)
               if(ptr[blacklower*width*4+(20*4)+1]!=0)break;
             
-	    if(blacklower-test<snatchheight)logo_y=-1;
+	    if(blacklower-test<snatchheight){
+	      logo_y=-1;
+	    }
           }
         }
       }
@@ -642,7 +642,7 @@
       /* blank background */
       if(x==0 && y==0 && d_width==rpplay_width && d_height==rpplay_height){
         unsigned char *bptr;
-	
+
         if(snatch_active==1)
           bptr=snatchppm;
         else

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list