From 90b278bfaa7dcc0fa26d81cc033fc4cc1c3801a4 Mon Sep 17 00:00:00 2001 From: pontscho Date: Thu, 20 Mar 2003 12:42:16 +0000 Subject: many 10l for me ... git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9626 b3059339-0415-0410-9bf9-f77b7e298cf2 --- Gui/mplayer/common.c | 1 + Gui/mplayer/gtk/mb.c | 2 +- Gui/mplayer/gtk/opts.c | 4 ++++ Gui/mplayer/mw.c | 1 + Gui/mplayer/pb.c | 9 +++++---- Gui/mplayer/sw.c | 1 + 6 files changed, 13 insertions(+), 5 deletions(-) (limited to 'Gui/mplayer') diff --git a/Gui/mplayer/common.c b/Gui/mplayer/common.c index e9c909533f..69528c3b7b 100644 --- a/Gui/mplayer/common.c +++ b/Gui/mplayer/common.c @@ -15,6 +15,7 @@ #include "../../config.h" #include "../../help_mp.h" #include "../../libvo/x11_common.h" +#include "../../libvo/fastmemcpy.h" #include "../../libmpdemux/stream.h" #include "../../mixer.h" diff --git a/Gui/mplayer/gtk/mb.c b/Gui/mplayer/gtk/mb.c index ebcb8b6098..f075c65d2b 100644 --- a/Gui/mplayer/gtk/mb.c +++ b/Gui/mplayer/gtk/mb.c @@ -11,7 +11,7 @@ #include "common.h" GtkWidget * gtkMessageBoxText; -GtkWidget * MessageBox; +GtkWidget * MessageBox = NULL; void ShowMessageBox( char * msg ) { diff --git a/Gui/mplayer/gtk/opts.c b/Gui/mplayer/gtk/opts.c index 4d5610a2dd..3c5b317f0f 100644 --- a/Gui/mplayer/gtk/opts.c +++ b/Gui/mplayer/gtk/opts.c @@ -69,6 +69,7 @@ static GtkWidget * CBDumpSrt; static GtkWidget * CBPostprocess; static GtkWidget * CBCache; static GtkWidget * CBLoadFullscreen; +static GtkWidget * CBSaveWinPos; static GtkWidget * CBStopXScreenSaver; static GtkWidget * CBPlayBar; @@ -352,6 +353,7 @@ void ShowPreferences( void ) // --- 6. page gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBPostprocess ),gtkVopPP ); gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBLoadFullscreen ),gtkLoadFullscreen ); + gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBSaveWinPos ),gui_save_pos ); gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBShowVideoWindow ),gtkShowVideoWindow ); if ( !gtkShowVideoWindow ) { @@ -592,6 +594,7 @@ void prButton( GtkButton * button,gpointer user_data ) // --- 6. page gtkVopPP=gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( CBPostprocess ) ); gtkLoadFullscreen=gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( CBLoadFullscreen ) ); + gui_save_pos=gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( CBSaveWinPos ) ); gtkShowVideoWindow=gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( CBShowVideoWindow ) ); stop_xscreensaver=gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( CBStopXScreenSaver ) ); gtkEnablePlayBar=gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( CBPlayBar ) ); @@ -1195,6 +1198,7 @@ GtkWidget * create_Preferences( void ) CBShowVideoWindow=AddCheckButton( MSGTR_PREFERENCES_ShowVideoWindow,vbox602 ); CBLoadFullscreen=AddCheckButton( MSGTR_PREFERENCES_LoadFullscreen,vbox602 ); + CBSaveWinPos=AddCheckButton( MSGTR_PREFERENCES_SaveWinPos,vbox602 ); CBStopXScreenSaver=AddCheckButton( MSGTR_PREFERENCES_XSCREENSAVER,vbox602 ); CBPlayBar=AddCheckButton( MSGTR_PREFERENCES_PlayBar,vbox602 ); diff --git a/Gui/mplayer/mw.c b/Gui/mplayer/mw.c index a23a5c41ad..a3b4ddce93 100644 --- a/Gui/mplayer/mw.c +++ b/Gui/mplayer/mw.c @@ -15,6 +15,7 @@ #include "../../config.h" #include "../../help_mp.h" #include "../../libvo/x11_common.h" +#include "../../libvo/fastmemcpy.h" #include "../../libmpdemux/stream.h" #include "../../mixer.h" diff --git a/Gui/mplayer/pb.c b/Gui/mplayer/pb.c index 7e7cadb882..644729e660 100644 --- a/Gui/mplayer/pb.c +++ b/Gui/mplayer/pb.c @@ -15,6 +15,7 @@ #include "../../config.h" #include "../../help_mp.h" #include "../../libvo/x11_common.h" +#include "../../libvo/fastmemcpy.h" #include "../../libmpdemux/stream.h" #include "../../mixer.h" @@ -214,13 +215,13 @@ void mplPBShow( int x, int y ) void mplPBInit( void ) { - gfree( (void**)&mplPBDrawBuffer ); - if ( !appMPlayer.barIsPresent ) return; - if ( ( mplPBDrawBuffer = (unsigned char *)calloc( 1,appMPlayer.bar.Bitmap.ImageSize ) ) == NULL ) + gfree( (void**)&mplPBDrawBuffer ); + + if ( ( mplPBDrawBuffer = (unsigned char *)malloc( appMPlayer.bar.Bitmap.ImageSize ) ) == NULL ) { - fprintf( stderr,MSGTR_NEMDB ); + mp_msg( MSGT_GPLAYER,MSGL_FATAL,MSGTR_NEMDB ); exit( 0 ); } diff --git a/Gui/mplayer/sw.c b/Gui/mplayer/sw.c index 1eca6d6bfa..55693ec345 100644 --- a/Gui/mplayer/sw.c +++ b/Gui/mplayer/sw.c @@ -5,6 +5,7 @@ #include "../../config.h" #include "../../libvo/x11_common.h" +#include "../../libvo/fastmemcpy.h" #include "../app.h" #include "../interface.h" -- cgit v1.2.3