X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fgame_sp%2FDDSpriteBuffer.c;h=47ec6aa39e3e5fdd489deba1f88a05dfc8d58b86;hb=9c299f0c6d66d7d0a246bbecdf2669fe5db25547;hp=8f524c0228b261d86a8d00010d2c53d0a1ea1d87;hpb=1d3eff06cde10309320341fa92abec5b14f1c6f6;p=rocksndiamonds.git diff --git a/src/game_sp/DDSpriteBuffer.c b/src/game_sp/DDSpriteBuffer.c index 8f524c02..47ec6aa3 100644 --- a/src/game_sp/DDSpriteBuffer.c +++ b/src/game_sp/DDSpriteBuffer.c @@ -8,16 +8,23 @@ static void Blt(int pX, int pY, Bitmap *bitmap, int SpriteX, int SpriteY) { #if NEW_TILESIZE +#if 0 int pseudo_sxsize = SXSIZE * TILESIZE / TILESIZE_VAR; int pseudo_sysize = SYSIZE * TILESIZE / TILESIZE_VAR; +#endif #endif int scx = (mScrollX_last < 0 ? 0 : mScrollX_last); int scy = (mScrollY_last < 0 ? 0 : mScrollY_last); int sx1 = scx - 2 * TILEX; int sy1 = scy - 2 * TILEY; #if NEW_TILESIZE +#if 1 + int sx2 = scx + (SCR_FIELDX + 1) * TILEX; + int sy2 = scy + (SCR_FIELDY + 1) * TILEY; +#else int sx2 = scx + pseudo_sxsize + 1 * TILEX; int sy2 = scy + pseudo_sysize + 1 * TILEY; +#endif #else int sx2 = scx + SXSIZE + 1 * TILEX; int sy2 = scy + SYSIZE + 1 * TILEY;