wwww
修訂 | 23f857ab87cf17220060634de2ad2f3600f481ab (tree) |
---|---|
時間 | 2016-05-09 15:59:36 |
作者 | sparky4 <sparky4@cock...> |
Commiter | sparky4 |
things are working well now o
@@ -259,9 +259,9 @@ void modexHiganbanaPageSetup(video_t *video) | ||
259 | 259 | { |
260 | 260 | video->vmem_remain=262144L; |
261 | 261 | video->num_of_pages=0; |
262 | - (video->page[0]) = modexDefaultPage(&(video->page[0])); video->num_of_pages++; | |
263 | - //video->page[0].width += (TILEWHD); video->page[0].height += (TILEWHD); | |
262 | + (video->page[0]) = modexDefaultPage(&(video->page[0])); video->num_of_pages++; //video->page[0].width += (TILEWHD); video->page[0].height += (TILEWHD); | |
264 | 263 | (video->page[1]) = modexNextPage(&(video->page[0])); video->num_of_pages++; |
264 | + (video->page[2]) = modexNextPage(&(video->page[1])); video->num_of_pages++; | |
265 | 265 | //(video->page[2]) = modexNextPageFlexibleSize(&(video->page[1]), video->page[0].width, video->page[0].sh-40); video->num_of_pages++; |
266 | 266 | //(video->page[3]) = modexNextPageFlexibleSize(&(video->page[2]), TILEWH, TILEWH); video->num_of_pages++; |
267 | 267 | modexCalcVmemRemain(video); |
@@ -1119,9 +1119,9 @@ modexWaitBorder() { | ||
1119 | 1119 | // spin |
1120 | 1120 | } |
1121 | 1121 | |
1122 | - while(!(inp(INPUT_STATUS_1) & 8)) { | |
1123 | - // spin | |
1124 | - } | |
1122 | +// while(!(inp(INPUT_STATUS_1) & 8)) { | |
1123 | +// // spin | |
1124 | +// } | |
1125 | 1125 | } |
1126 | 1126 | |
1127 | 1127 | void bios_cls() { |
@@ -162,7 +162,7 @@ void main(int argc, char *argv[]) | ||
162 | 162 | |
163 | 163 | /* setup camera and screen~ */ |
164 | 164 | modexHiganbanaPageSetup(&gvar.video); |
165 | - for(i=0;i<gvar.video.num_of_pages-2;i++) | |
165 | + for(i=0;i<gvar.video.num_of_pages;i++) | |
166 | 166 | { |
167 | 167 | mv[i].page = &gvar.video.page[i]; |
168 | 168 | mv[i].map = ↦ |
@@ -172,7 +172,7 @@ void main(int argc, char *argv[]) | ||
172 | 172 | /* set up paging */ |
173 | 173 | //TODO: LOAD map data and position the map in the middle of the screen if smaller then screen |
174 | 174 | mapGoTo(mv, 0, 0); |
175 | - //modexCopyPageRegion(mv[1].page, mv[0].page, 0, 0, 0, 0, mv[1].page->width, mv[1].page->height); | |
175 | + modexCopyPageRegion(mv[1].page, mv[0].page, 0, 0, 0, 0, mv[1].page->width, mv[1].page->height); | |
176 | 176 | |
177 | 177 | //TODO: put player in starting position of spot |
178 | 178 | //default player position on the viewable map |
@@ -318,16 +318,15 @@ void main(int argc, char *argv[]) | ||
318 | 318 | for(i=0; i<gvar.video.num_of_pages;i++) |
319 | 319 | { |
320 | 320 | printf(" [%u]=", i); |
321 | - printf("(%Fp)\n", (gvar.video.page[i].data)); | |
321 | + printf("(%Fp)", (gvar.video.page[i].data)); | |
322 | + printf(" size=%ld", gvar.video.page[i].pagesize); | |
323 | + printf(" sw=%lu sh=%lu ", (unsigned long)gvar.video.page[i].sw, (unsigned long)gvar.video.page[i].sh); | |
324 | + printf(" width=%lu height=%lu", (unsigned long)gvar.video.page[i].width, (unsigned long)gvar.video.page[i].height); | |
325 | + printf("\n"); | |
322 | 326 | } |
323 | 327 | printf("mv[%u].tx: %d", pan.pn, mv[pan.pn].tx); printf(" mv[%u].ty: %d ", pan.pn, mv[pan.pn].ty); printf("panswitch=%u\n", panswitch); |
324 | 328 | //printf("player[1].q: %d", player[1].q); printf(" player[1].d: %d\n", player[1].d); |
325 | 329 | printf("\n"); |
326 | -// printf("Screen2: %dx", gvar.video.page[1].width); printf("%d\n", gvar.video.page[1].height); | |
327 | -// printf("map: %dx%d\n", map.width, map.height); | |
328 | -// printf("\n"); | |
329 | -// printf("player[0].info.x: %d", player[0].info.xaxis); printf(" player[0].info.y: %d\n", player[0].info.yaxis); | |
330 | -// printf("player[0].info.tx: %d", player[0].info.x); printf(" player[0].info.ty: %d\n", player[0].info.y); | |
331 | 330 | //printf("map.width=%d map.height=%d map.data[0]=%d\n", mv[0].map->width, mv[0].map->height, mv[0].map->data[0]); |
332 | 331 | |
333 | 332 | printf("\n"); |
@@ -91,10 +91,8 @@ void main(int argc, char *argv[]) | ||
91 | 91 | mv[i].tx = 0; |
92 | 92 | mv[i].ty = 0; |
93 | 93 | } |
94 | - gvar.video.page[0]=modexDefaultPage(&gvar.video.page[0]); | |
95 | - gvar.video.page[1] = modexNextPage(&gvar.video.page[0]); | |
96 | -// gvar.video.page[0].width += 32; | |
97 | -// gvar.video.page[0].height += 32; | |
94 | +// gvar.video.page[0]=modexDefaultPage(&gvar.video.page[0]); | |
95 | +// gvar.video.page[1] = modexNextPage(&gvar.video.page[0]); | |
98 | 96 | |
99 | 97 | |
100 | 98 | /* fill the page with one color, but with a black border */ |