projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-19990108-1
[rocksndiamonds.git]
/
src
/
tools.c
diff --git
a/src/tools.c
b/src/tools.c
index 424a3272071868cb0877171f5dfffab88fa7a544..972d7c23c071984ecfd9dd21cd38d7f357d5722d 100644
(file)
--- a/
src/tools.c
+++ b/
src/tools.c
@@
-1370,10
+1370,8
@@
void DrawMiniLevel(int scroll_x, int scroll_y)
{
int x,y;
{
int x,y;
- ClearWindow();
-
- for(x=0; x<2*SCR_FIELDX; x++)
- for(y=0; y<2*SCR_FIELDY; y++)
+ for(x=0; x<ED_FIELDX; x++)
+ for(y=0; y<ED_FIELDY; y++)
DrawMiniElementOrWall(x, y, scroll_x, scroll_y);
redraw_mask |= REDRAW_FIELD;
DrawMiniElementOrWall(x, y, scroll_x, scroll_y);
redraw_mask |= REDRAW_FIELD;
@@
-1383,6
+1381,9
@@
void DrawMicroLevel(int xpos, int ypos)
{
int x,y;
{
int x,y;
+ /* determine border element for this level */
+ SetBorderElement();
+
XFillRectangle(display, drawto, gc,
xpos - MICRO_TILEX, ypos - MICRO_TILEY,
MICRO_TILEX * (STD_LEV_FIELDX + 2),
XFillRectangle(display, drawto, gc,
xpos - MICRO_TILEX, ypos - MICRO_TILEY,
MICRO_TILEX * (STD_LEV_FIELDX + 2),