File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 13
13
#include " my_wid_leftbar.hpp"
14
14
#include " my_wid_rightbar.hpp"
15
15
#include " my_wid_thing_info.hpp"
16
+ #include " my_wid_topcon.hpp"
16
17
#include " my_wid_tp_info.hpp"
17
18
18
19
void sdl_display (void )
@@ -72,11 +73,15 @@ void sdl_display_reset(void)
72
73
{
73
74
CON (" SDL: Video resetting" );
74
75
76
+ auto old_topcon = wid_topcon_serialize ();
77
+ auto old_console = wid_console_serialize ();
78
+
75
79
wid_console_fini ();
76
80
wid_rightbar_fini ();
77
81
wid_leftbar_fini ();
78
82
wid_actionbar_fini ();
79
83
wid_botcon_fini ();
84
+ wid_topcon_fini ();
80
85
wid_asciimap_fini ();
81
86
wid_thing_info_fini (" gfx toggle" ); // To remove bag or other info
82
87
wid_tp_info_fini (" gfx toggle" ); // To remove bag or other info
@@ -97,10 +102,13 @@ void sdl_display_reset(void)
97
102
wid_hide (wid_console_window);
98
103
sdl_flush_display ();
99
104
100
- wid_botcon_fini ();
105
+ wid_asciimap_init ();
101
106
wid_botcon_init ();
107
+ wid_topcon_init ();
108
+ wid_visible (wid_topcon_window);
102
109
wid_visible (wid_botcon_window);
103
- wid_asciimap_init ();
110
+ wid_topcon_deserialize (old_topcon);
111
+ wid_console_deserialize (old_console);
104
112
105
113
//
106
114
// DO NOT CALL THIS HERE. We could be inside a widget mouse up handler.
You can’t perform that action at this time.
0 commit comments