projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20100521-1-src
[rocksndiamonds.git]
/
src
/
editor.c
diff --git
a/src/editor.c
b/src/editor.c
index 83df2e15c5048d51ef8dc7bce33d29cc7f367ec4..5752d7420e34397251e9c344aea87e536efd70a8 100644
(file)
--- a/
src/editor.c
+++ b/
src/editor.c
@@
-7409,6
+7409,11
@@
void DrawLevelEd()
FadeOut(REDRAW_FIELD);
#endif
FadeOut(REDRAW_FIELD);
#endif
+#if 1
+ /* needed if different viewport properties defined for editor */
+ ChangeViewportPropertiesIfNeeded();
+#endif
+
OpenDoor(DOOR_OPEN_2 | DOOR_NO_DELAY);
#if DEBUG
OpenDoor(DOOR_OPEN_2 | DOOR_NO_DELAY);
#if DEBUG
@@
-7438,6
+7443,10
@@
void DrawLevelEd()
BlitBitmap(graphic_info[IMG_GLOBAL_DOOR].bitmap, drawto,
DOOR_GFX_PAGEX6, DOOR_GFX_PAGEY1, DXSIZE, DYSIZE, DX, DY);
BlitBitmap(graphic_info[IMG_GLOBAL_DOOR].bitmap, drawto,
DOOR_GFX_PAGEX6, DOOR_GFX_PAGEY1, DXSIZE, DYSIZE, DX, DY);
+#if 0
+ printf("::: %d, %d / %d, %d\n", VX, VY, EX, EY);
+#endif
+
/* draw bigger door */
DrawSpecialEditorDoor();
/* draw bigger door */
DrawSpecialEditorDoor();
@@
-8164,7
+8173,7
@@
static int PrintElementDescriptionFromFile(char *filename, int start_line)
int max_lines_per_screen = (SYSIZE - pad_y) / font_height - 1;
return DrawTextFile(sx, sy, filename, font_nr, max_chars_per_line, -1,
int max_lines_per_screen = (SYSIZE - pad_y) / font_height - 1;
return DrawTextFile(sx, sy, filename, font_nr, max_chars_per_line, -1,
- max_lines_per_screen, -1, TRUE, FALSE, FALSE);
+ max_lines_per_screen,
0,
-1, TRUE, FALSE, FALSE);
}
static void DrawPropertiesInfo()
}
static void DrawPropertiesInfo()
@@
-11505,7
+11514,9
@@
static void HandleControlButtons(struct GadgetInfo *gi)
BackToFront(); /* force redraw of undrawn special door */
BackToFront(); /* force redraw of undrawn special door */
+#if 0
DrawCompleteVideoDisplay();
DrawCompleteVideoDisplay();
+#endif
level_editor_test_game = TRUE;
level_editor_test_game = TRUE;