wwww
修訂 | 751c4f3ec8c17fd957a9be148272149e7eed5a35 (tree) |
---|---|
時間 | 2016-05-09 15:09:15 |
作者 | sparky4 <sparky4@cock...> |
Commiter | sparky4 |
fixed the issue with sw ==0
@@ -203,6 +203,8 @@ modexNextPage(page_t *p) { | ||
203 | 203 | result.data = p->data + (p->pagesize); |
204 | 204 | result.dx = 0; |
205 | 205 | result.dy = 0; |
206 | + result.sw = p->sw; | |
207 | + result.sh = p->sh; | |
206 | 208 | result.width = p->width; |
207 | 209 | result.height = p->height; |
208 | 210 | result.tw = p->tw; |
@@ -224,6 +226,8 @@ modexNextPageFlexibleSize(page_t *p, word x, word y) | ||
224 | 226 | result.data = p->data + (p->pagesize); /* compute the offset */ |
225 | 227 | result.dx = 0; |
226 | 228 | result.dy = 0; |
229 | + result.sw = x; | |
230 | + result.sh = y; | |
227 | 231 | result.width = x; |
228 | 232 | result.height = y; |
229 | 233 | result.tw = result.sw/TILEWH; |
@@ -104,7 +104,7 @@ void main(int argc, char *argv[]) | ||
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); |
106 | 106 | 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); | |
108 | 108 | |
109 | 109 | /* fade in */ |
110 | 110 | modexFadeOn(1, pal2); |