# HG changeset patch # User Sam Lantinga # Date 1004740892 0 # Node ID bb72c418a1f94de69ac24157ffd7ce9a9ab828b1 # Parent 2d1753bc178a50dffe86db615ffb3a73297abde9 Disabled virtual terminal check for SVGAlib video diff -r 2d1753bc178a -r bb72c418a1f9 src/video/svga/SDL_svgavideo.c --- a/src/video/svga/SDL_svgavideo.c Fri Nov 02 19:59:41 2001 +0000 +++ b/src/video/svga/SDL_svgavideo.c Fri Nov 02 22:41:32 2001 +0000 @@ -86,6 +86,7 @@ /* See if we are connected to a virtual terminal */ console = STDIN_FILENO; +#if 0 /* This is no longer needed, SVGAlib can switch consoles for us */ if ( console >= 0 ) { struct stat sb; struct vt_mode dummy; @@ -95,6 +96,7 @@ console = -1; } } +#endif /* 0 */ /* See if SVGAlib 2.0 is available */ svgalib2 = open("/dev/svga", O_RDONLY); @@ -225,8 +227,8 @@ modeinfo = vga_getmodeinfo(vga_getcurrentmode()); this->info.video_mem = modeinfo->memory; /* FIXME: Add hardware accelerated blit information */ -#if 0 -printf("Hardware accelerated blit: %savailable\n", modeinfo->haveblit ? "" : "not "); +#ifdef SVGALIB_DEBUG + printf("Hardware accelerated blit: %savailable\n", modeinfo->haveblit ? "" : "not "); #endif }