Skip to content

Commit

Permalink
scroll.exe is fully fixed!!!! wwww
Browse files Browse the repository at this point in the history
	modified:   maptest.exe
	modified:   pcxtest.exe
	modified:   scroll.exe
	modified:   src/lib/modex16.h
	modified:   src/scroll.c
	modified:   test.exe
	modified:   test2.exe
  • Loading branch information
sparky4 committed Jun 11, 2015
1 parent a88ac80 commit 5cafb19
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 2 deletions.
Binary file modified maptest.exe
Binary file not shown.
Binary file modified pcxtest.exe
Binary file not shown.
Binary file modified scroll.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion src/lib/modex16.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#define SELECT_ALL_PLANES() outpw(0x03c4, 0xff02)

typedef struct {
byte /*huge*/* data; /* the data for the page */
byte far* data; /* the data for the page */
word dx; /* col we are viewing on the virtual screen */
word dy; /* row we are viewing on the virtual screen */
word width; /* virtual width of the page */
Expand Down
2 changes: 1 addition & 1 deletion src/scroll.c
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ mapDrawTile(tiles_t *t, word i, page_t *page, word x, word y) {
{
rx = (((i-1) % ((t->data->width)/t->tileWidth)) * t->tileWidth);
ry = (((i-1) / ((t->data->height)/t->tileHeight)) * t->tileHeight);
printf("i=%d\n", i);
////0000 printf("i=%d\n", i);
//mxPutTile(t->data, x, y, t->tileWidth, t->tileHeight);
modexDrawBmpRegion(page, x, y, rx, ry, t->tileWidth, t->tileHeight, (t->data));
}
Expand Down
Binary file modified test.exe
Binary file not shown.
Binary file modified test2.exe
Binary file not shown.

0 comments on commit 5cafb19

Please sign in to comment.