SDL plugin fullscreen bug

Arnaud de Bossoreille de Ribou bozo at via.ecp.fr
Fri May 17 20:29:05 CEST 2002


When I have a 1024x768 window and I switch the fullscreen mode, the vout
opens a 720x576 window instead of a 1024x768 one which prevent the
down-scaling 'bug' of a lot of video adapters.

The patch is attached.

-- 
Arnaud
-------------- next part --------------
Index: plugins/sdl/vout_sdl.c
===================================================================
RCS file: /cvs/videolan/vlc/plugins/sdl/vout_sdl.c,v
retrieving revision 1.90
diff -u -r1.90 vout_sdl.c
--- plugins/sdl/vout_sdl.c	2002/05/14 17:31:40	1.90
+++ plugins/sdl/vout_sdl.c	2002/05/17 18:19:44
@@ -584,10 +584,8 @@
     int    i_bpp;
 
     /* Set main window's size */
-    p_vout->p_sys->i_width = p_vout->b_fullscreen ? p_vout->output.i_width :
-                                                    p_vout->i_window_width;
-    p_vout->p_sys->i_height = p_vout->b_fullscreen ? p_vout->output.i_height :
-                                                     p_vout->i_window_height;
+    p_vout->p_sys->i_width = p_vout->i_window_width;
+    p_vout->p_sys->i_height = p_vout->i_window_height;
 
     /* Initialize flags and cursor */
     i_flags = SDL_ANYFORMAT | SDL_HWPALETTE | SDL_HWSURFACE | SDL_DOUBLEBUF;


More information about the vlc-devel mailing list