X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fdos%2Fgfx.c;fp=src%2Fdos%2Fgfx.c;h=7e5db988c2088a07e5b444c7434879d5d34fee14;hb=e15fd29ed680da268d796cb7cfc7e175fd542708;hp=ef05921728a49ab30b6029ff93e30cc8b7b6f2cc;hpb=e1d53fab6f08e10a05e06e4f3ad79075b933a01b;p=retrobench diff --git a/src/dos/gfx.c b/src/dos/gfx.c index ef05921..7e5db98 100644 --- a/src/dos/gfx.c +++ b/src/dos/gfx.c @@ -203,8 +203,15 @@ void *set_video_mode(int idx, int nbuf) pgsize = vm->ysz * vm->pitch; fbsize = pgcount * pgsize; + if(vm->bpp > 8) { + printf("rgb mask: %x %x %x\n", (unsigned int)vm->rmask, + (unsigned int)vm->gmask, (unsigned int)vm->bmask); + printf("rgb shift: %d %d %d\n", vm->rshift, vm->gshift, vm->bshift); + } printf("pgcount: %d, pgsize: %d, fbsize: %d\n", pgcount, pgsize, fbsize); - printf("phys addr: %p\n", (void*)vm->fb_addr); + if(vm->fb_addr) { + printf("phys addr: %p\n", (void*)vm->fb_addr); + } fflush(stdout); if(vm->fb_addr) {