# HG changeset patch # User Sam Lantinga # Date 1104865454 0 # Node ID 3d4f1930ed02f451653e0b0a021e97ee10eeb3e4 # Parent ddd058103e28daf88bf83c5a7251a9351332eb9d *** empty log message *** diff -r ddd058103e28 -r 3d4f1930ed02 src/video/fbcon/SDL_fbevents.c --- a/src/video/fbcon/SDL_fbevents.c Mon Jan 03 00:24:44 2005 +0000 +++ b/src/video/fbcon/SDL_fbevents.c Tue Jan 04 19:04:14 2005 +0000 @@ -835,7 +835,7 @@ 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 @@ (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 @@ 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 -r ddd058103e28 -r 3d4f1930ed02 src/video/fbcon/SDL_fbriva.c --- a/src/video/fbcon/SDL_fbriva.c Mon Jan 03 00:24:44 2005 +0000 +++ b/src/video/fbcon/SDL_fbriva.c Tue Jan 04 19:04:14 2005 +0000 @@ -61,6 +61,7 @@ ; } +#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 @@ { return(0); } +#endif /* Not yet implemented */ static int FillHWRect(_THIS, SDL_Surface *dst, SDL_Rect *rect, Uint32 color) {