Skip to content

Commit

Permalink
*** empty log message ***
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jan 4, 2005
1 parent 540fb26 commit 7a2a919
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/video/fbcon/SDL_fbevents.c
Expand Up @@ -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;
Expand All @@ -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);
Expand All @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions src/video/fbcon/SDL_fbriva.c
Expand Up @@ -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)
{
Expand All @@ -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)
{
Expand Down

0 comments on commit 7a2a919

Please sign in to comment.