projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
changed comments from old to new style (one-line comments only)
[rocksndiamonds.git]
/
src
/
game_sp
/
DDScrollBuffer.c
diff --git
a/src/game_sp/DDScrollBuffer.c
b/src/game_sp/DDScrollBuffer.c
index 62257d0314c403d026e83152cec72c5999d31e95..0db7e7fd2af75a00ef34dbc429e676d1c6395c92 100644
(file)
--- a/
src/game_sp/DDScrollBuffer.c
+++ b/
src/game_sp/DDScrollBuffer.c
@@
-17,7
+17,7
@@
int getFieldbufferOffsetX_SP(void)
{
int px = 2 * TILEX + (mScrollX - mScrollX_last) % TILEX;
{
int px = 2 * TILEX + (mScrollX - mScrollX_last) % TILEX;
- /
* scroll correction for even number of visible tiles (half tile shifted) */
+ /
/ scroll correction for even number of visible tiles (half tile shifted)
px += game_sp.scroll_xoffset;
if (ExplosionShakeMurphy != 0)
px += game_sp.scroll_xoffset;
if (ExplosionShakeMurphy != 0)
@@
-32,7
+32,7
@@
int getFieldbufferOffsetY_SP(void)
{
int py = 2 * TILEY + (mScrollY - mScrollY_last) % TILEY;
{
int py = 2 * TILEY + (mScrollY - mScrollY_last) % TILEY;
- /
* scroll correction for even number of visible tiles (half tile shifted) */
+ /
/ scroll correction for even number of visible tiles (half tile shifted)
py += game_sp.scroll_yoffset;
if (ExplosionShakeMurphy != 0)
py += game_sp.scroll_yoffset;
if (ExplosionShakeMurphy != 0)
@@
-130,7
+130,7
@@
static void ScrollPlayfieldIfNeededExt(boolean reset)
return;
}
return;
}
- /
* check if scrolling the playfield requires redrawing the viewport bitmap */
+ /
/ check if scrolling the playfield requires redrawing the viewport bitmap
if ((mScrollX != mScrollX_last ||
mScrollY != mScrollY_last) &&
(ABS(mScrollX - mScrollX_last) >= TILEX ||
if ((mScrollX != mScrollX_last ||
mScrollY != mScrollY_last) &&
(ABS(mScrollX - mScrollX_last) >= TILEX ||
@@
-198,7
+198,7
@@
void UpdatePlayfield(boolean force_redraw)
if (element != GfxElementLast[x][y] &&
graphic == GfxGraphicLast[x][y])
{
if (element != GfxElementLast[x][y] &&
graphic == GfxGraphicLast[x][y])
{
- /
* element changed, but not graphic => disable updating graphic */
+ /
/ element changed, but not graphic => disable updating graphic
GfxElementLast[x][y] = element;
GfxGraphicLast[x][y] = GfxGraphic[x][y] = -1;
GfxElementLast[x][y] = element;
GfxGraphicLast[x][y] = GfxGraphic[x][y] = -1;
@@
-240,7
+240,7
@@
void UpdatePlayfield(boolean force_redraw)
void BlitScreenToBitmap_SP(Bitmap *target_bitmap)
{
void BlitScreenToBitmap_SP(Bitmap *target_bitmap)
{
- /
* copy playfield buffer to target bitmap at scroll position */
+ /
/ copy playfield buffer to target bitmap at scroll position
int px = getFieldbufferOffsetX_SP();
int py = getFieldbufferOffsetY_SP();
int px = getFieldbufferOffsetX_SP();
int py = getFieldbufferOffsetY_SP();