Commit bedf5ce5 authored by Sam Hocevar's avatar Sam Hocevar

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

parent aa1be1aa
......@@ -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 :
......
......@@ -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 );
{
......
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment