From af64eb7f60d759747c71fee51349e30f2253a1b6 Mon Sep 17 00:00:00 2001 From: nick Date: Thu, 15 Nov 2001 16:45:26 +0000 Subject: [PATCH] Screen clearing instead of stupid BIOSes git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2915 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_vesa.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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