wwww
Revision | e02ae4965f0f1925c9f258d14abf9a3a6e938f4d (tree) |
---|---|
Time | 2016-05-09 07:06:46 |
Author | sparky4 <sparky4@cock...> |
Commiter | sparky4 |
w
@@ -92,6 +92,9 @@ void modexEnter(sword vq, boolean cmem, global_game_variables_t *gv) | ||
92 | 92 | { |
93 | 93 | case 1: |
94 | 94 | //CRTParmCount = sizeof(ModeX_320x240regs) / sizeof(ModeX_320x240regs[0]); |
95 | + /*for(i=0; i<CRTParmCount; i++) { | |
96 | + outpw(CRTC_INDEX, ModeX_320x240regs[i]); | |
97 | + }*/ | |
95 | 98 | /* width and height */ |
96 | 99 | gv->video.page[0].sw = vga_state.vga_width = 320; // VGA lib currently does not update this |
97 | 100 | gv->video.page[0].sh = vga_state.vga_height = 240; // VGA lib currently does not update this |
@@ -31,7 +31,7 @@ | ||
31 | 31 | #include "src/lib/modex16/16planar.h" |
32 | 32 | #include "src/lib/16text.h" |
33 | 33 | #include "src/lib/modex16/16render.h" |
34 | -// #include "src/lib/modex16/320x240.h" | |
34 | +#include "src/lib/modex16/320x240.h" | |
35 | 35 | // #include "src/lib/modex16/320x200.h" |
36 | 36 | // #include "src/lib/modex16/256x192.h" |
37 | 37 | // #include "src/lib/modex16/192x144_.h" |
@@ -99,7 +99,7 @@ void main(int argc, char *argv[]) | ||
99 | 99 | |
100 | 100 | /* fill the page with one color, but with a black border */ |
101 | 101 | modexShowPage(&gvar.video.page[1]); |
102 | - //modexClearRegion(&gvar.video.page[0], 0, 0, gvar.video.page[0].width, gvar.video.page[0].height, 0); | |
102 | + modexClearRegion(&gvar.video.page[0], 0, 0, gvar.video.page[0].width, gvar.video.page[0].height, 15); | |
103 | 103 | modexClearRegion(&gvar.video.page[0], 16, 16, gvar.video.page[0].sw, gvar.video.page[0].sh, 128); |
104 | 104 | modexClearRegion(&gvar.video.page[0], 32, 32, gvar.video.page[0].sw-32, gvar.video.page[0].sh-32, 42); |
105 | 105 | modexClearRegion(&gvar.video.page[0], 48, 48, gvar.video.page[0].sw-64, gvar.video.page[0].sh-64, 128); |
@@ -109,7 +109,7 @@ void main(int argc, char *argv[]) | ||
109 | 109 | /* fade in */ |
110 | 110 | modexFadeOn(1, pal2); |
111 | 111 | |
112 | - i=0,k=0,j=0,pan.pn=0; | |
112 | + i=0,k=0,j=0,pan.pn=1; | |
113 | 113 | startclk = *clockw; |
114 | 114 | while(!IN_KeyDown(sc_Escape)) |
115 | 115 | { |
@@ -149,7 +149,10 @@ void main(int argc, char *argv[]) | ||
149 | 149 | baka: |
150 | 150 | i++; |
151 | 151 | modexClearRegion(&gvar.video.page[1], 0, gvar.video.page[0].height/2, gvar.video.page[0].width-32, 16, 45);*/ |
152 | - if(IN_KeyDown(6)) modexClearRegion(&gvar.video.page[1], 0, gvar.video.page[0].height/2, gvar.video.page[0].width, 16, 45); | |
152 | + if(IN_KeyDown(6)) | |
153 | + { | |
154 | + modexClearRegion(&gvar.video.page[1], gvar.video.page[1].sw, 16, 8, 4, 45); | |
155 | + } | |
153 | 156 | if(IN_KeyDown(4+1)){ |
154 | 157 | modexClearRegion(&gvar.video.page[1], 16, 16, gvar.video.page[1].sw, gvar.video.page[1].sh, 128); |
155 | 158 | modexClearRegion(&gvar.video.page[1], 32, 32, gvar.video.page[1].sw-32, gvar.video.page[1].sh-32, 42); |
@@ -158,7 +161,9 @@ void main(int argc, char *argv[]) | ||
158 | 161 | //} |
159 | 162 | if(IN_KeyDown(2)) pan.pn=0; |
160 | 163 | if(IN_KeyDown(3)) pan.pn=1; |
161 | - //if(IN_KeyDown(6)) modexClearRegion(&gvar.video.page[1], 0, 0, gvar.video.page[0].sw-64, gvar.video.page[0].sh-16, 45); | |
164 | + if(IN_KeyDown(25)){ | |
165 | + modexpdump(&gvar.video.page[pan.pn]); | |
166 | + }//p | |
162 | 167 | modexShowPage(&gvar.video.page[pan.pn]); |
163 | 168 | } |
164 | 169 |