1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-16 20:27:23 +00:00

patch from Rune <runner@mail.tele.dk>

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12069 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
pontscho 2004-03-25 21:49:48 +00:00
parent bf08296b42
commit d1d9313755
3 changed files with 5 additions and 4 deletions

View File

@ -135,7 +135,7 @@ char * gconvert_uri_to_filename( char * str )
if ( out[i] != '%' ) t[c++]=out[i];
else
{
char tmp[4] = "0xXX";
char tmp[5] = "0xXX";
// if ( out[++i] == '%' ) { t[c++]='%'; continue; };
tmp[2]=out[++i]; tmp[3]=out[++i];
t[c++]=(char)strtol( tmp,(char **)NULL,0 );
@ -520,7 +520,7 @@ int guiGetEvent( int type,char * arg )
break;
case guiSetStop:
guiIntfStruct.Playing=0;
if ( !gtkShowVideoWindow ) wsVisibleWindow( &appMPlayer.subWindow,wsHideWindow );
// if ( !gtkShowVideoWindow ) wsVisibleWindow( &appMPlayer.subWindow,wsHideWindow );
break;
case guiSetPause: guiIntfStruct.Playing=2; break;
}

View File

@ -95,11 +95,12 @@ void mplEnd( void )
guiIntfStruct.DVD.current_angle=1;
#endif
if ( !appMPlayer.subWindow.isFullScreen )
if ( !appMPlayer.subWindow.isFullScreen && gtkShowVideoWindow)
{
wsResizeWindow( &appMPlayer.subWindow,appMPlayer.sub.width,appMPlayer.sub.height );
wsMoveWindow( &appMPlayer.subWindow,True,appMPlayer.sub.x,appMPlayer.sub.y );
}
else wsVisibleWindow( &appMPlayer.subWindow,wsHideWindow );
guiGetEvent( guiCEvent,guiSetStop );
mplSubRender=1;
wsSetBackgroundRGB( &appMPlayer.subWindow,appMPlayer.sub.R,appMPlayer.sub.G,appMPlayer.sub.B );

View File

@ -122,7 +122,7 @@ wsXDNDProcessSelection(wsTWindow* wnd, XEvent *event)
/* Handle the files */
if(wnd->DandDHandler){
wnd->DandDHandler(num,files);
wnd->DandDHandler(num-1,files);
}
}