*** empty log message ***

This commit is contained in:
Sam Lantinga
2005-01-04 19:04:14 +00:00
parent cefc7550ee
commit 0c5e110baf
2 changed files with 5 additions and 3 deletions

View File

@@ -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;

View File

@@ -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)
{