diff Gui/interface.c @ 9088:731e5dc57436

- fix -fs - set sub_fps to null for new files - fix one sig11, if you play vcd, and the disc is not vcd, playtree is dead - add playbar vertical position support - etc.
author pontscho
date Sat, 25 Jan 2003 10:04:05 +0000
parents 3086611e8213
children c2f31ca14a92
line wrap: on
line diff
--- a/Gui/interface.c	Sat Jan 25 10:03:35 2003 +0000
+++ b/Gui/interface.c	Sat Jan 25 10:04:05 2003 +0000
@@ -170,7 +170,6 @@
 #ifdef HAVE_DXR3
  if ( !gtkDXR3Device ) gtkDXR3Device=strdup( "/dev/em8300-0" );
 #endif
- fullscreen=gtkLoadFullscreen;
  if ( stream_cache_size != -1 ) { gtkCacheOn=1; gtkCacheSize=stream_cache_size; }
  if ( autosync && autosync != gtkAutoSync ) { gtkAutoSyncOn=1; gtkAutoSync=autosync; }
    
@@ -189,7 +188,7 @@
    case -2: mp_msg( MSGT_GPLAYER,MSGL_ERR,MSGTR_SKIN_SKINCFG_SkinCfgReadError,skinName ); exit( 0 );
   }
 // --- initialize windows
- if ( ( mplDrawBuffer = (unsigned char *)calloc( 1,appMPlayer.main.Bitmap.ImageSize ) ) == NULL )
+ if ( ( mplDrawBuffer = (unsigned char *)malloc( appMPlayer.main.Bitmap.ImageSize ) ) == NULL )
   {
    fprintf( stderr,MSGTR_NEMDB );
    exit( 0 );
@@ -259,6 +258,7 @@
   appMPlayer.subWindow.Mapped=wsMapped;
  }
 
+ if ( !fullscreen ) fullscreen=gtkLoadFullscreen;
  if ( fullscreen )
   {
    mplFullScreen();