1
0
Fork 0

Fix #12787: boostrap doesn't have main vindow (#12788)

pull/12789/head
Loïc Guilloux 2024-06-15 22:39:15 +02:00 committed by GitHub
parent b991a399ef
commit d7137651f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -2712,7 +2712,7 @@ const std::chrono::milliseconds TIME_BETWEEN_DOUBLE_CLICK(500); ///< Time betwee
static void ScrollMainViewport(int x, int y)
{
if (_game_mode != GM_MENU) {
if (_game_mode != GM_MENU && _game_mode != GM_BOOTSTRAP) {
Window *w = GetMainWindow();
w->viewport->dest_scrollpos_x += ScaleByZoom(x, w->viewport->zoom);
w->viewport->dest_scrollpos_y += ScaleByZoom(y, w->viewport->zoom);