X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=src%2Fdos%2Fgfx.c;h=d0128eef6d8f0c791158f2c9e09a04da76c15d5c;hp=b5670bfaf75ac49f35258d853959e39d40cbd4a9;hb=92bc7be93ea01896b93f2986c6029b5932c32d97;hpb=8b7d7ca6a99b08200b0e7684c4d8ef3040c46c87 diff --git a/src/dos/gfx.c b/src/dos/gfx.c index b5670bf..d0128ee 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