Commit ad2cc0a6 authored by Sam Lantinga's avatar Sam Lantinga

Disabled virtual terminal check for SVGAlib video

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40227
parent 12c2075f
...@@ -86,6 +86,7 @@ static int SVGA_Available(void) ...@@ -86,6 +86,7 @@ static int SVGA_Available(void)
/* See if we are connected to a virtual terminal */ /* See if we are connected to a virtual terminal */
console = STDIN_FILENO; console = STDIN_FILENO;
#if 0 /* This is no longer needed, SVGAlib can switch consoles for us */
if ( console >= 0 ) { if ( console >= 0 ) {
struct stat sb; struct stat sb;
struct vt_mode dummy; struct vt_mode dummy;
...@@ -95,6 +96,7 @@ static int SVGA_Available(void) ...@@ -95,6 +96,7 @@ static int SVGA_Available(void)
console = -1; console = -1;
} }
} }
#endif /* 0 */
/* See if SVGAlib 2.0 is available */ /* See if SVGAlib 2.0 is available */
svgalib2 = open("/dev/svga", O_RDONLY); svgalib2 = open("/dev/svga", O_RDONLY);
...@@ -225,8 +227,8 @@ static void SVGA_UpdateVideoInfo(_THIS) ...@@ -225,8 +227,8 @@ static void SVGA_UpdateVideoInfo(_THIS)
modeinfo = vga_getmodeinfo(vga_getcurrentmode()); modeinfo = vga_getmodeinfo(vga_getcurrentmode());
this->info.video_mem = modeinfo->memory; this->info.video_mem = modeinfo->memory;
/* FIXME: Add hardware accelerated blit information */ /* FIXME: Add hardware accelerated blit information */
#if 0 #ifdef SVGALIB_DEBUG
printf("Hardware accelerated blit: %savailable\n", modeinfo->haveblit ? "" : "not "); printf("Hardware accelerated blit: %savailable\n", modeinfo->haveblit ? "" : "not ");
#endif #endif
} }
......
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