File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -56,15 +56,15 @@ DFhackCExport command_result plugin_shutdown([[maybe_unused]] color_ostream &out
5656static std::atomic_bool callback_queued = false ;
5757
5858struct scroll_state {
59- int8_t xdiff;
60- int8_t ydiff;
59+ int8_t xdiff = 0 ;
60+ int8_t ydiff = 0 ;
6161};
6262
6363static scroll_state state;
6464static scroll_state queued;
6565
6666static void render_thread_cb () {
67- queued = {0 };
67+ queued = {};
6868 // Ignore the mouse if outside the window
6969 if (!enabler->mouse_focus ) {
7070 callback_queued.store (false );
@@ -107,7 +107,7 @@ static bool update_mouse_pos() {
107107
108108 // Queued callback complete, save the results and enqueue again
109109 state = queued;
110- queued = {0 };
110+ queued = {};
111111 DFHack::runOnRenderThread (render_thread_cb);
112112 callback_queued.store (true );
113113 return true ;
You can’t perform that action at this time.
0 commit comments