diff options
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/vo_xmga.c | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/libvo/vo_xmga.c b/libvo/vo_xmga.c index 5494f683d6..aae70fc4d4 100644 --- a/libvo/vo_xmga.c +++ b/libvo/vo_xmga.c @@ -177,19 +177,12 @@ static void set_window(){ 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) |