Added help "are you root?" when initialization fails.. for newbies like myself

This commit is contained in:
stephanr 2001-06-07 22:05:53 +00:00
parent df400afa01
commit 47392f4b3b

View file

@ -189,7 +189,8 @@ global void InitVideoSVGA(void)
setuid(geteuid());
if(vga_init() == -1) {
fprintf(stderr, "Cannot initialize svgalib.\n");
fprintf(stderr, "Cannot initialize svgalib.\n"
"(You are possibly not user 'root')\n" );
exit(-1);
}
VideoMemory =malloc(VideoWidth * VideoHeight * ((VideoDepth+7) >> 3));