Skip to content

Commit

Permalink
Briefly show a dark screen when changing rooms, like in the original …
Browse files Browse the repository at this point in the history
…game.
  • Loading branch information
NagyD committed Nov 13, 2021
1 parent 6701645 commit 607eb46
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -667,3 +667,5 @@ DONE: Added gamecontroller hotplug support. SDLPoP now detects controllers plugg
Details: https://github.com/NagyD/SDLPoP/pull/256
FIXED: Fixed black rectangle appearing when the shadow falls into the wall.
Details: See FIX_BLACK_RECT in config.h and https://github.com/NagyD/SDLPoP/issues/254
DONE: Briefly show a dark screen when changing rooms, like in the original game.
See USE_DARK_TRANSITION in config.h .
3 changes: 3 additions & 0 deletions src/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,9 @@ The authors of this program may be contacted at https://forum.princed.org
// Mute the sound during fast forward.
//#define FAST_FORWARD_MUTE

// Briefly show a dark screen when changing rooms, like in the original game.
#define USE_DARK_TRANSITION


// Default SDL_Joystick button values
#define SDL_JOYSTICK_BUTTON_Y 2
Expand Down
5 changes: 5 additions & 0 deletions src/seg003.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,11 @@ void __pascal far redraw_screen(int drawing_different_room) {
//remove_flash();
if (drawing_different_room) {
draw_rect(&rect_top, 0);
#ifdef USE_DARK_TRANSITION
// Briefly show a dark screen when changing rooms, like in the original game.
update_screen();
SDL_Delay(100);
#endif
}

different_room = 0;
Expand Down

0 comments on commit 607eb46

Please sign in to comment.