• R/O
  • HTTP
  • SSH
  • HTTPS

提交

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

wwww


Commit MetaInfo

修訂23f857ab87cf17220060634de2ad2f3600f481ab (tree)
時間2016-05-09 15:59:36
作者sparky4 <sparky4@cock...>
Commitersparky4

Log Message

things are working well now o

Change Summary

差異

--- a/src/lib/modex16.c
+++ b/src/lib/modex16.c
@@ -259,9 +259,9 @@ void modexHiganbanaPageSetup(video_t *video)
259259 {
260260 video->vmem_remain=262144L;
261261 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);
264263 (video->page[1]) = modexNextPage(&(video->page[0])); video->num_of_pages++;
264+ (video->page[2]) = modexNextPage(&(video->page[1])); video->num_of_pages++;
265265 //(video->page[2]) = modexNextPageFlexibleSize(&(video->page[1]), video->page[0].width, video->page[0].sh-40); video->num_of_pages++;
266266 //(video->page[3]) = modexNextPageFlexibleSize(&(video->page[2]), TILEWH, TILEWH); video->num_of_pages++;
267267 modexCalcVmemRemain(video);
@@ -1119,9 +1119,9 @@ modexWaitBorder() {
11191119 // spin
11201120 }
11211121
1122- while(!(inp(INPUT_STATUS_1) & 8)) {
1123- // spin
1124- }
1122+// while(!(inp(INPUT_STATUS_1) & 8)) {
1123+// // spin
1124+// }
11251125 }
11261126
11271127 void bios_cls() {
--- a/src/scroll.c
+++ b/src/scroll.c
@@ -162,7 +162,7 @@ void main(int argc, char *argv[])
162162
163163 /* setup camera and screen~ */
164164 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++)
166166 {
167167 mv[i].page = &gvar.video.page[i];
168168 mv[i].map = &map;
@@ -172,7 +172,7 @@ void main(int argc, char *argv[])
172172 /* set up paging */
173173 //TODO: LOAD map data and position the map in the middle of the screen if smaller then screen
174174 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);
176176
177177 //TODO: put player in starting position of spot
178178 //default player position on the viewable map
@@ -318,16 +318,15 @@ void main(int argc, char *argv[])
318318 for(i=0; i<gvar.video.num_of_pages;i++)
319319 {
320320 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");
322326 }
323327 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);
324328 //printf("player[1].q: %d", player[1].q); printf(" player[1].d: %d\n", player[1].d);
325329 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);
331330 //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]);
332331
333332 printf("\n");
--- a/src/test.c
+++ b/src/test.c
@@ -91,10 +91,8 @@ void main(int argc, char *argv[])
9191 mv[i].tx = 0;
9292 mv[i].ty = 0;
9393 }
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]);
9896
9997
10098 /* fill the page with one color, but with a black border */