changeset 4303:a53d7ca1ed84

move bug fixed
author pontscho
date Tue, 22 Jan 2002 12:00:15 +0000
parents 9f12fd5f47d0
children 329ecbb6309b
files libvo/vo_xmga.c
diffstat 1 files changed, 6 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_xmga.c	Tue Jan 22 06:12:18 2002 +0000
+++ b/libvo/vo_xmga.c	Tue Jan 22 12:00:15 2002 +0000
@@ -177,19 +177,12 @@
 
 static void check_events(void)
 {
-    int e=vo_x11_check_events(mDisplay);
-
-    if(e&VO_EVENT_RESIZE){
-         set_window();
-         if ( ioctl( f,MGA_VID_CONFIG,&mga_vid_config ) )
-          {
-           printf( "Error in mga_vid_config ioctl (wrong mga_vid.o version?)" );
-//           exit( 0 );
-          }
-
-    } else
-    if(e&VO_EVENT_EXPOSE) mDrawColorKey();
-
+ int e=vo_x11_check_events(mDisplay);
+ if ( !(e&VO_EVENT_RESIZE) && !(e&VO_EVENT_EXPOSE) ) return;
+ if(e&VO_EVENT_EXPOSE) mDrawColorKey();
+ set_window();
+ if ( ioctl( f,MGA_VID_CONFIG,&mga_vid_config ) )
+   printf( "Error in mga_vid_config ioctl (wrong mga_vid.o version?)" );
 }
 
 static void draw_osd(void)