X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_vl.c;h=4f758b056889bbf53a84d81b47445b33249c2bf0;hb=3506c6d20c6b49673eb3f527c25149b44f16ab12;hp=82ca46f6d5166145dd39643c88bc8b4569fa6d42;hpb=32e0bfea8d60e4f1b03c99a43fabcde3747613b8;p=16.git diff --git a/src/lib/16_vl.c b/src/lib/16_vl.c index 82ca46f6..4f758b05 100755 --- a/src/lib/16_vl.c +++ b/src/lib/16_vl.c @@ -334,42 +334,7 @@ modexShowPage(page_t *page) { outp(AC_INDEX, (page[0].dx & 0x03) << 1); } -// -// testing version of void modexShowPage() -// -void -modexShowPage_(page_t *page) -{ - word high_address, low_address, offset; - byte crtcOffset; - - /* calculate offset */ - offset = (word) page->data; - offset += page[0].dy * (page->width >> 2 ); - offset += page[0].dx >> 2; - - /* calculate crtcOffset according to virtual width */ - crtcOffset = page->sw >> 3; - - high_address = HIGH_ADDRESS | (offset & 0xff00); - low_address = LOW_ADDRESS | (offset << 8); - - /* wait for appropriate timing and then program CRTC */ -//+=+= while ((inp(INPUT_STATUS_1) & DISPLAY_ENABLE)); - outpw(CRTC_INDEX, high_address); - outpw(CRTC_INDEX, low_address); - outp(CRTC_INDEX, 0x13); - outp(CRTC_DATA, crtcOffset); - - /* wait for one retrace */ -//+=+= while (!(inp(INPUT_STATUS_1) & VRETRACE)); - - /* do PEL panning here */ - outp(AC_INDEX, 0x33); - outp(AC_INDEX, (page[0].dx & 0x03) << 1); -} - -//yet another variant +//another variant //args: page, vertical sync switch, screen resolution switch, page0 switch void VL_ShowPage(page_t *page, boolean vsync, boolean sr) {