From: sparky4 Date: Wed, 15 Jun 2016 18:35:50 +0000 (-0500) Subject: attempted to make static page buffer system ww X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=31cf323b1ac94e123c6a770890551020e47e3b8d;p=16.git attempted to make static page buffer system ww --- diff --git a/src/lib/scroll16.c b/src/lib/scroll16.c index fc973769..534ae630 100755 --- a/src/lib/scroll16.c +++ b/src/lib/scroll16.c @@ -621,7 +621,17 @@ void mapGoTo(map_view_t *mv, int tx, int ty) i+=mv->map->width - tx; } modexCopyPageRegion(mv[1].page, mv[0].page, 0, 0, 0, 0, mv[0].page->width, mv[0].page->height); - modexCopyPageRegion(mv[3].page, mv[!(mv->video->p)].page, 0/**/, 0/**/, 0, 128, 28, 36); + { + unsigned int k,j,o; + /* fill screen with a distinctive pattern */ + for (k=0;k < vga_state.vga_width;k++) { + o = k >> 2; + vga_write_sequencer(0x02/*map mask*/,1 << (k&3)); + for (j=0;j < (mv[0].page->height)+(mv[1].page->height)+(mv[2].page->height)+(mv[3].page->height);j++,o += vga_state.vga_stride) + vga_state.vga_graphics_ram[o] = (k^j)&15; // VRL samples put all colors in first 15! + } + } +// modexCopyPageRegion(mv[3].page, mv[!(mv->video->p)].page, 0/**/, 0/**/, 0, 128, 28, 36); } diff --git a/src/scroll.c b/src/scroll.c index a3b44bb5..9d6cd0a3 100755 --- a/src/scroll.c +++ b/src/scroll.c @@ -203,8 +203,18 @@ void main(int argc, char *argv[]) shinku_fps_indicator_page = 1; // we're on page 1 now, shinku(). follow along please or it will not be visible. /* buffer pages */ - modexClearRegion(mv[2].page, 0, 0, mv[2].page->width, mv[2].page->height, 47); - modexClearRegion(mv[3].page, 0, 0, mv[3].page->width, mv[3].page->height, 45); +// modexClearRegion(mv[2].page, 0, 0, mv[2].page->width, mv[2].page->height, 47); +// modexClearRegion(mv[3].page, 0, 0, mv[3].page->width, mv[3].page->height, 45); + { + unsigned int k,j,o; + /* fill screen with a distinctive pattern */ + for (k=0;k < vga_state.vga_width;k++) { + o = k >> 2; + vga_write_sequencer(0x02/*map mask*/,1 << (k&3)); + for (j=0;j < vga_state.vga_height;j++,o += vga_state.vga_stride) + vga_state.vga_graphics_ram[o] = (k^j)&15; // VRL samples put all colors in first 15! + } + } modexClearRegion(mv[3].page, 0, 128, 28, 36, 15); #ifdef MODEX @@ -282,8 +292,8 @@ void main(int argc, char *argv[]) } if(IN_KeyDown(67)) //f9 { - modexClearRegion(mv[2].page, 0, 0, mv[2].page->width, mv[2].page->height, 47); - modexClearRegion(mv[3].page, 0, 0, mv[3].page->width, mv[3].page->height, 45); +// modexClearRegion(mv[2].page, 0, 0, mv[2].page->width, mv[2].page->height, 47); +// modexClearRegion(mv[3].page, 0, 0, mv[3].page->width, mv[3].page->height, 45); modexClearRegion(mv[3].page, 0, 128, 28, 36, 15); //IN_UserInput(1,1); }