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