sbaldovi

fuse_sdl_fullscreen_dirty_hack.diff

Nov 18th, 2011
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.04 KB | None | 0 0
  1. Index: ui/sdl/sdldisplay.c
  2. ===================================================================
  3. --- ui/sdl/sdldisplay.c (revision 4563)
  4. +++ ui/sdl/sdldisplay.c (working copy)
  5. @@ -103,6 +103,7 @@
  6.                                          Uint32 *bw_values );
  7.  
  8.  static int sdldisplay_load_gfx_mode( void );
  9. +static void sdldisplay_find_best_fullscreen_scaler( void );
  10.  
  11.  static void
  12.  init_scalers( void )
  13. @@ -245,6 +246,10 @@
  14.    if ( scaler_select_scaler( current_scaler ) )
  15.      scaler_select_scaler( SCALER_NORMAL );
  16.  
  17. +  sdldisplay_current_size = scaler_get_scaling_factor( current_scaler );
  18. +
  19. +  sdldisplay_find_best_fullscreen_scaler();
  20. +
  21.    if( sdldisplay_load_gfx_mode() ) return 1;
  22.  
  23.    SDL_WM_SetCaption( "Fuse", "Fuse" );
  24. @@ -328,8 +333,6 @@
  25.  
  26.    sdldisplay_current_size = scaler_get_scaling_factor( current_scaler );
  27.  
  28. -  sdldisplay_find_best_fullscreen_scaler();
  29. -
  30.    /* Create the surface that contains the scaled graphics in 16 bit mode */
  31.    sdldisplay_gc = SDL_SetVideoMode(
  32.      image_width * sdldisplay_current_size,
  33.  
Add Comment
Please, Sign In to add comment