summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authornick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-15 16:45:26 +0000
committernick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-15 16:45:26 +0000
commitaf64eb7f60d759747c71fee51349e30f2253a1b6 (patch)
treec20843d412700ed45b579499bcb01cce3bb87c17 /libvo
parent116f05bed56051d67aa8a6095b48790b7682acfb (diff)
downloadmpv-af64eb7f60d759747c71fee51349e30f2253a1b6.tar.bz2
mpv-af64eb7f60d759747c71fee51349e30f2253a1b6.tar.xz
Screen clearing instead of stupid BIOSes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2915 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_vesa.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/libvo/vo_vesa.c b/libvo/vo_vesa.c
index b2beb3c4c9..16a9041a83 100644
--- a/libvo/vo_vesa.c
+++ b/libvo/vo_vesa.c
@@ -457,6 +457,17 @@ static void paintBkGnd( void )
}
}
+static void clear_screen( void )
+{
+ int x_res = video_mode_info.XResolution;
+ int y_res = video_mode_info.YResolution;
+ int x, y;
+
+ for (y = 0; y < y_res; ++y)
+ for (x = 0; x < x_res; ++x)
+ __vbeSetPixel(x, y, 0, 0, 0);
+}
+
static char *model2str(unsigned char type)
{
char *retval;
@@ -854,6 +865,8 @@ init(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint3
printf("vo_vesa: VESA initialization complete\n");
fflush(stdout);
}
+ /* Clear screen for stupid BIOSes */
+ clear_screen();
if(HAS_DGA() && vo_doublebuffering)
{
for(i=0;i<MAX_BUFFERS;i++)