summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-08-29 17:37:03 +0000
committerpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-08-29 17:37:03 +0000
commit00b8ad21e94749b3f4de346a910566f357bd81ac (patch)
tree9bca5796a119846671977bd45eea99fc9765bce6 /mplayer.c
parent9e5096e8fb9c57f473f3dbdafc3738fee8ccf8d1 (diff)
downloadmpv-00b8ad21e94749b3f4de346a910566f357bd81ac.tar.bz2
mpv-00b8ad21e94749b3f4de346a910566f357bd81ac.tar.xz
resize
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1754 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/mplayer.c b/mplayer.c
index 4b85761e0b..a89ec85047 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -573,7 +573,11 @@ if(!parse_codec_cfg(get_path("codecs.conf"))){
play_next_file:
filename=(num_filenames>0)?filenames[curr_filename]:NULL;
#ifdef HAVE_NEW_GUI
- strcpy( mplShMem->Filename,filename );
+ if ( use_gui )
+ {
+ strcpy( mplShMem->Filename,filename );
+ mplShMem->Playing=1;
+ }
#endif
if(filename) mp_msg(MSGT_CPLAYER,MSGL_INFO,"Playing %s\n", filename);
@@ -954,6 +958,16 @@ current_module="init_libvo";
}
#endif
+#ifdef HAVE_NEW_GUI
+ if ( use_gui )
+ {
+ if ( !appMPlayer.subWindow.isFullScreen )
+ wsResizeWindow( &appMPlayer.subWindow,sh_video->disp_w,sh_video->disp_h );
+ screen_size_x=appMPlayer.subWindow.Width;
+ screen_size_y=appMPlayer.subWindow.Height;
+ }
+#endif
+
mp_msg(MSGT_CPLAYER,MSGL_V,"video_out->init(%dx%d->%dx%d,flags=%d,'%s',0x%X)\n",
sh_video->disp_w,sh_video->disp_h,
screen_size_x,screen_size_y,