diff options
author | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-08-31 22:07:53 +0000 |
---|---|---|
committer | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-08-31 22:07:53 +0000 |
commit | abca9bccc2256dfd44bacf7ba722c69638ae56aa (patch) | |
tree | 4c1c046ecf3233eb9e0d2fa4ee6ad347273ae576 /Gui/mplayer/sw.h | |
parent | 454fe03492d1ef96d8e9b34aeb0fbaac4d9a2d15 (diff) |
fix resize
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1816 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui/mplayer/sw.h')
-rw-r--r-- | Gui/mplayer/sw.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Gui/mplayer/sw.h b/Gui/mplayer/sw.h index ed39c0e1de..bd8f9e9caa 100644 --- a/Gui/mplayer/sw.h +++ b/Gui/mplayer/sw.h @@ -50,18 +50,15 @@ void mplSubDraw( wsParamDisplay ) if ( ( mplShMem->Playing ) )//&&( appMPlayer.subWindow.State == wsWindowExpose ) ) { -printf( "------> redraw volib.\n" ); - wsSetBackgroundRGB( &appMPlayer.subWindow,0,0,0 ); - wsClearWindow( appMPlayer.subWindow ); vo_expose=1; mplSubRender=0; } if ( mplSubRender ) { -printf( "------> redraw video.\n" ); - wsSetBackgroundRGB( &appMPlayer.subWindow,appMPlayer.subR,appMPlayer.subG,appMPlayer.subB ); - wsClearWindow( appMPlayer.subWindow ); + wsSetForegroundRGB( &appMPlayer.subWindow,appMPlayer.subR,appMPlayer.subG,appMPlayer.subB ); + XFillRectangle( wsDisplay,appMPlayer.subWindow.WindowID,appMPlayer.subWindow.wGC,0,0, + appMPlayer.subWindow.Width,appMPlayer.subWindow.Height ); if ( appMPlayer.sub.Bitmap.Image ) { wsConvert( &appMPlayer.subWindow,appMPlayer.sub.Bitmap.Image,appMPlayer.sub.Bitmap.ImageSize ); |