Skip to content

Commit

Permalink
IT'S WORKING!!!!!!!!!!!!!!! WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW…
Browse files Browse the repository at this point in the history
…WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWwwwwWWwwWwwWwwWwwWwWwwWwWwwWwWWw

	modified:   scroll.exe
	modified:   src/scroll.c
  • Loading branch information
sparky4 committed Mar 30, 2015
1 parent 545e0ff commit d64a24c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
Binary file modified scroll.exe
Binary file not shown.
13 changes: 0 additions & 13 deletions src/scroll.c
Original file line number Diff line number Diff line change
Expand Up @@ -804,8 +804,6 @@ void
mapDrawTile(tiles_t *t, word i, page_t *page, word x, word y) {
word rx;
word ry;
//rx = (i % t->cols) * t->tileWidth;
//ry = (i / t->cols) * t->tileHeight;
//if(i==0) i=2;
if(i==0)
{
Expand All @@ -815,11 +813,6 @@ 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);
if(i==5) printf("rx= %d\n", rx);
if(i==5) printf("ry= %d\n", ry);
if(i==5) printf("i= %d\n", i);
//if(i==4) printf("x= %d\n", (i % ((t->data->width*i)/t->tileWidth)) * t->tileWidth);
//if(i==4) printf("y= %d\n", (i / ((t->data->height*i)/t->tileHeight)) * t->tileHeight);
//mxPutTile(t->data, x, y, t->tileWidth, t->tileHeight);
modexDrawBmpRegion(page, x, y, rx, ry, t->tileWidth, t->tileHeight, (t->data));
}
Expand All @@ -836,9 +829,6 @@ mapDrawRow(map_view_t *mv, int tx, int ty, word y) {
for(x=0; x<SCREEN_WIDTH+mv->dxThresh && tx < mv->map->width; x+=mv->map->tiles->tileWidth, tx++) {
if(i>=0) {
/* we are in the map, so copy! */
//if(mv->map->data[i]==0) mv->map->data[i]=2;
//if(mv->map->data[i]==0) modexClearRegion(mv->page, x, y, 16, 16, 0);
//else
mapDrawTile(mv->map->tiles, mv->map->data[i], mv->page, x, y);
}
i++; /* next! */
Expand All @@ -858,9 +848,6 @@ mapDrawCol(map_view_t *mv, int tx, int ty, word x) {
for(y=0; y<SCREEN_HEIGHT+mv->dyThresh && ty < mv->map->height; y+=mv->map->tiles->tileHeight, ty++) {
if(i>=0) {
/* we are in the map, so copy away! */
//if(mv->map->data[i]==0) mv->map->data[i]=2;
//if(mv->map->data[i]==0) modexClearRegion(mv->page, x, y, 16, 16, 0);
//else
mapDrawTile(mv->map->tiles, mv->map->data[i], mv->page, x, y);
}
i += mv->map->width;
Expand Down

0 comments on commit d64a24c

Please sign in to comment.