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
/
MainForm.c
diff --git
a/src/game_sp/MainForm.c
b/src/game_sp/MainForm.c
index 85f7a12988e2efc6a13d945c175b845b2b68279d..96d71a9653be859b519e6919c4506ea432bef886 100644
(file)
--- a/
src/game_sp/MainForm.c
+++ b/
src/game_sp/MainForm.c
@@
-16,7
+16,7
@@
void DrawFrameIfNeeded(void)
{
DrawFrame(0);
{
DrawFrame(0);
- /
* !!! CHECK THIS !!! */
+ /
/ !!! CHECK THIS !!!
if (! menBorder)
DrawFrame(1);
}
if (! menBorder)
DrawFrame(1);
}
@@
-173,19
+173,19
@@
void SetScrollEdges(void)
int border1_offset = (menBorder ? 1 : 2);
int border2_offset = (menBorder ? 0 : TILESIZE / 2);
int border1_offset = (menBorder ? 1 : 2);
int border2_offset = (menBorder ? 0 : TILESIZE / 2);
- /
* scroll correction for border frame (1 tile) or border element (2 tiles) */
+ /
/ scroll correction for border frame (1 tile) or border element (2 tiles)
ScrollMinX = 0;
ScrollMinY = 0;
ScrollMaxX = (DisplayMaxX + border1_offset - SCR_FIELDX) * TILEX;
ScrollMaxY = (DisplayMaxY + border1_offset - SCR_FIELDY) * TILEY;
ScrollMinX = 0;
ScrollMinY = 0;
ScrollMaxX = (DisplayMaxX + border1_offset - SCR_FIELDX) * TILEX;
ScrollMaxY = (DisplayMaxY + border1_offset - SCR_FIELDY) * TILEY;
- /
* scroll correction for border element (half tile on left and right side) */
+ /
/ scroll correction for border element (half tile on left and right side)
ScrollMinX += border2_offset;
ScrollMinY += border2_offset;
ScrollMaxX -= border2_offset;
ScrollMaxY -= border2_offset;
ScrollMinX += border2_offset;
ScrollMinY += border2_offset;
ScrollMaxX -= border2_offset;
ScrollMaxY -= border2_offset;
- /
* scroll correction for even number of visible tiles (half tile shifted) */
+ /
/ scroll correction for even number of visible tiles (half tile shifted)
ScrollMinX -= game_sp.scroll_xoffset;
ScrollMaxX -= game_sp.scroll_xoffset;
ScrollMinY -= game_sp.scroll_yoffset;
ScrollMinX -= game_sp.scroll_xoffset;
ScrollMaxX -= game_sp.scroll_xoffset;
ScrollMinY -= game_sp.scroll_yoffset;