Added help "are you root?" when initialization fails.. for newbies like myself
This commit is contained in:
parent
df400afa01
commit
47392f4b3b
1 changed files with 2 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue