Commit bef6a4f3 authored by Sam Lantinga's avatar Sam Lantinga

*** empty log message ***

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401023
parent c7310825
......@@ -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;
......
......@@ -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)
{
......
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