X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fgame_em%2Fgraphics.c;h=3c68eb033c78c1e88e8179ce754fece1ee806722;hp=54711e9536026e5bff44b1e90372c6452a212506;hb=49e5cc70747062c45172e6106b8bec41d2e859ad;hpb=97d0f78c43d16fbf73ea0438148a4da781c75600 diff --git a/src/game_em/graphics.c b/src/game_em/graphics.c index 54711e95..3c68eb03 100644 --- a/src/game_em/graphics.c +++ b/src/game_em/graphics.c @@ -37,6 +37,16 @@ int screen_x, screen_y; /* current scroll position */ static int screentiles[MAX_PLAYFIELD_HEIGHT + 2][MAX_PLAYFIELD_WIDTH + 2]; static int crumbled_state[MAX_PLAYFIELD_HEIGHT + 2][MAX_PLAYFIELD_WIDTH + 2]; +int getFieldbufferOffsetX_EM() +{ + return screen_x % TILEX; +} + +int getFieldbufferOffsetY_EM() +{ + return screen_y % TILEY; +} + void BlitScreenToBitmap_EM(Bitmap *target_bitmap) { /* blit all (up to four) parts of the scroll buffer to the target bitmap */