From 7a2a91950d9a7f6c1ceccee6d6fa81bc7ea23bc4 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 4 Jan 2005 19:04:14 +0000 Subject: [PATCH] *** empty log message *** --- src/video/fbcon/SDL_fbevents.c | 6 +++--- src/video/fbcon/SDL_fbriva.c | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/video/fbcon/SDL_fbevents.c b/src/video/fbcon/SDL_fbevents.c index 4ca659e39..a20e7e26e 100644 --- a/src/video/fbcon/SDL_fbevents.c +++ b/src/video/fbcon/SDL_fbevents.c @@ -835,7 +835,7 @@ static void handle_mouse(_THIS) static void switch_vt(_THIS, unsigned short which) { struct vt_stat vtstate; - unsigned short current; + unsigned short v_active; SDL_Surface *screen; __u16 saved_pal[3*256]; Uint32 screen_arealen; @@ -846,7 +846,7 @@ static void switch_vt(_THIS, unsigned short which) (which == vtstate.v_active) ) { return; } - current = vtstate.v_active; + v_active = vtstate.v_active; /* Save the contents of the screen, and go to text mode */ SDL_mutexP(hw_lock); @@ -864,7 +864,7 @@ static void switch_vt(_THIS, unsigned short which) if ( ioctl(keyboard_fd, VT_ACTIVATE, which) == 0 ) { /* Wait for our console to be activated again */ ioctl(keyboard_fd, VT_WAITACTIVE, which); - while ( ioctl(keyboard_fd, VT_WAITACTIVE, current) < 0 ) { + while ( ioctl(keyboard_fd, VT_WAITACTIVE, v_active) < 0 ) { if ( (errno != EINTR) && (errno != EAGAIN) ) { /* Unknown VT error - cancel this */ break; diff --git a/src/video/fbcon/SDL_fbriva.c b/src/video/fbcon/SDL_fbriva.c index 0653dd26a..b2090a1d9 100644 --- a/src/video/fbcon/SDL_fbriva.c +++ b/src/video/fbcon/SDL_fbriva.c @@ -61,6 +61,7 @@ static void NV4WaitIdle(_THIS) ; } +#if 0 /* Not yet implemented? */ /* Sets video mem colorkey and accelerated blit function */ static int SetHWColorKey(_THIS, SDL_Surface *surface, Uint32 key) { @@ -72,6 +73,7 @@ static int SetHWAlpha(_THIS, SDL_Surface *surface, Uint8 value) { return(0); } +#endif /* Not yet implemented */ static int FillHWRect(_THIS, SDL_Surface *dst, SDL_Rect *rect, Uint32 color) {