X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=src%2Fdos%2Fgfx.c;h=570eabac2d90787b5a9b38a38d0d5cdacc689fbe;hp=b55b4e6b3f28b7ad94400e35e00658537654f491;hb=f8bae6c14df76c506af4474cbf29402d2bfa8209;hpb=b82bab85314bbc57d1c542d4d6687de0cd75c375 diff --git a/src/dos/gfx.c b/src/dos/gfx.c index b55b4e6..570eaba 100644 --- a/src/dos/gfx.c +++ b/src/dos/gfx.c @@ -25,11 +25,25 @@ static int fbidx; static int init_vbe(void) { + int i, num; + if(vbe_info(&vbe) == -1) { + fprintf(stderr, "failed to retrieve VBE information\n"); return -1; } vbe_print_info(stdout, &vbe); + + num = vbe_num_modes(&vbe); + for(i=0; i