• 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

修訂751c4f3ec8c17fd957a9be148272149e7eed5a35 (tree)
時間2016-05-09 15:09:15
作者sparky4 <sparky4@cock...>
Commitersparky4

Log Message

fixed the issue with sw ==0

Change Summary

差異

Binary files a/pcx2vrl and b/pcx2vrl differ
Binary files a/pcxsscut and b/pcxsscut differ
--- a/src/lib/modex16.c
+++ b/src/lib/modex16.c
@@ -203,6 +203,8 @@ modexNextPage(page_t *p) {
203203 result.data = p->data + (p->pagesize);
204204 result.dx = 0;
205205 result.dy = 0;
206+ result.sw = p->sw;
207+ result.sh = p->sh;
206208 result.width = p->width;
207209 result.height = p->height;
208210 result.tw = p->tw;
@@ -224,6 +226,8 @@ modexNextPageFlexibleSize(page_t *p, word x, word y)
224226 result.data = p->data + (p->pagesize); /* compute the offset */
225227 result.dx = 0;
226228 result.dy = 0;
229+ result.sw = x;
230+ result.sh = y;
227231 result.width = x;
228232 result.height = y;
229233 result.tw = result.sw/TILEWH;
--- a/src/test.c
+++ b/src/test.c
@@ -104,7 +104,7 @@ void main(int argc, char *argv[])
104104 modexClearRegion(&gvar.video.page[0], 32, 32, gvar.video.page[0].sw-32, gvar.video.page[0].sh-32, 42);
105105 modexClearRegion(&gvar.video.page[0], 48, 48, gvar.video.page[0].sw-64, gvar.video.page[0].sh-64, 128);
106106 modexShowPage(&gvar.video.page[0]);
107- modexCopyPageRegion(&gvar.video.page[1], &gvar.video.page[0], 0, 0, 0, 0, gvar.video.page[0].width+32, gvar.video.page[0].height);
107+ modexCopyPageRegion(&gvar.video.page[1], &gvar.video.page[0], 0, 0, 0, 0, gvar.video.page[0].width, gvar.video.page[0].height);
108108
109109 /* fade in */
110110 modexFadeOn(1, pal2);
Binary files a/vrl2vrs and b/vrl2vrs differ
Binary files a/vrsdump and b/vrsdump differ