. le mode framebuffer vide l'�cran quand on quitte.

This commit is contained in:
Sam Hocevar 2000-10-29 10:05:14 +00:00
parent aa1be1aaeb
commit bedf5ce507
3 changed files with 8 additions and 2 deletions

View File

@ -6,6 +6,8 @@
* Fixed a 100% cpu usage bug, in the dummy aout.
* Added a 'f' shortcut to switch between Windowed and Fullscreen
mode.
* Added --broadcast option for network input.
* Screen is now emptied when framebuffer output exits.
Mon, 28 Aug 2000 02:34:18 +0200
0.1.99i :

View File

@ -325,7 +325,8 @@ static int FBOpenDisplay( vout_thread_t *p_vout )
p_vout->p_sys->p_video = mmap(0, p_vout->p_sys->i_page_size * 2,
PROT_READ | PROT_WRITE, MAP_SHARED,
p_vout->p_sys->i_fb_dev, 0 );
if( (int)p_vout->p_sys->p_video == -1 ) /* XXX?? according to man, it is -1. What about NULL ? */
memset( p_vout->p_sys->p_video, 0, p_vout->p_sys->i_page_size * 2 );
if( (int)p_vout->p_sys->p_video == -1 ) /* according to man, it is -1. What about NULL ? */
{
intf_ErrMsg("vout error: can't map video memory (%s)\n", strerror(errno) );
/* FIXME: restore fb config ?? */
@ -349,6 +350,9 @@ static int FBOpenDisplay( vout_thread_t *p_vout )
*****************************************************************************/
static void FBCloseDisplay( vout_thread_t *p_vout )
{
/* Clear display */
memset( p_vout->p_sys->p_video, 0, p_vout->p_sys->i_page_size * 2 );
/* Restore palette */
if( p_vout->i_screen_depth == 8 );
{

View File

@ -1778,7 +1778,7 @@ int RenderSplash( vout_thread_t *p_vout )
{
int i_x = 0, i_y = 0; /* text position */
int i_width, i_height; /* text size */
char *psz_text = "VideoLan Client (" VERSION ")"; /* text to display */
char *psz_text = "VideoLAN Client (" VERSION ")"; /* text to display */
memset( p_vout->p_buffer[ p_vout->i_buffer_index ].p_data,
p_vout->i_bytes_per_line * p_vout->i_height, 12);