diff options
Diffstat (limited to 'vncterm/LinuxVNC.c')
-rw-r--r-- | vncterm/LinuxVNC.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vncterm/LinuxVNC.c b/vncterm/LinuxVNC.c index 2534341..5a3c3a3 100644 --- a/vncterm/LinuxVNC.c +++ b/vncterm/LinuxVNC.c @@ -113,7 +113,9 @@ int main(int argc,char **argv) sprintf(title,"LinuxVNC: /dev/tty%d",tty); /* console init */ - console=vcGetConsole(&argc,argv,width,height,&vgaFont,TRUE); + if(!(console=vcGetConsole(&argc,argv,width,height,&vgaFont,TRUE))) + exit(1); + for(i=0;i<16;i++) { console->screen->colourMap.data.bytes[i*3+0]=default_red[color_table[i]]; console->screen->colourMap.data.bytes[i*3+1]=default_grn[color_table[i]]; |