Disabled virtual terminal check for SVGAlib video
authorSam Lantinga <slouken@libsdl.org>
Fri, 02 Nov 2001 22:41:32 +0000
changeset 226bb72c418a1f9
parent 225 2d1753bc178a
child 227 24878c14b391
Disabled virtual terminal check for SVGAlib video
src/video/svga/SDL_svgavideo.c
     1.1 --- a/src/video/svga/SDL_svgavideo.c	Fri Nov 02 19:59:41 2001 +0000
     1.2 +++ b/src/video/svga/SDL_svgavideo.c	Fri Nov 02 22:41:32 2001 +0000
     1.3 @@ -86,6 +86,7 @@
     1.4  
     1.5  	/* See if we are connected to a virtual terminal */
     1.6  	console = STDIN_FILENO;
     1.7 +#if 0 /* This is no longer needed, SVGAlib can switch consoles for us */
     1.8  	if ( console >= 0 ) {
     1.9  		struct stat sb;
    1.10  		struct vt_mode dummy;
    1.11 @@ -95,6 +96,7 @@
    1.12  			console = -1;
    1.13  		}
    1.14  	}
    1.15 +#endif /* 0 */
    1.16  
    1.17  	/* See if SVGAlib 2.0 is available */
    1.18  	svgalib2 = open("/dev/svga", O_RDONLY);
    1.19 @@ -225,8 +227,8 @@
    1.20  	modeinfo = vga_getmodeinfo(vga_getcurrentmode());
    1.21  	this->info.video_mem = modeinfo->memory;
    1.22  	/* FIXME: Add hardware accelerated blit information */
    1.23 -#if 0
    1.24 -printf("Hardware accelerated blit: %savailable\n", modeinfo->haveblit ? "" : "not ");
    1.25 +#ifdef SVGALIB_DEBUG
    1.26 +	printf("Hardware accelerated blit: %savailable\n", modeinfo->haveblit ? "" : "not ");
    1.27  #endif
    1.28  }
    1.29