diff --git a/build/amd64/debian/LegendaryKingdoms.desktop b/build/amd64/debian/LegendaryKingdoms.desktop index a758634..f20fcf5 100644 --- a/build/amd64/debian/LegendaryKingdoms.desktop +++ b/build/amd64/debian/LegendaryKingdoms.desktop @@ -1,7 +1,7 @@ [Desktop Entry] Name=Legendary Kingdoms Comment=Legendary Kingdoms -Version=1.0.7 +Version=1.0.8 TryExec=/usr/local/games/LegendaryKingdoms/LegendaryKingdoms.exe Exec=/usr/local/games/LegendaryKingdoms/LegendaryKingdoms.exe Icon=/usr/local/games/LegendaryKingdoms/icons/legendary-kingdoms-red-128.png diff --git a/build/amd64/debian/control b/build/amd64/debian/control index 733668d..c29551b 100644 --- a/build/amd64/debian/control +++ b/build/amd64/debian/control @@ -1,5 +1,5 @@ Package: legendary-kingdoms -Version: 1.0.7 +Version: 1.0.8 Maintainer: Dael Separa Architecture: amd64 Description: Legendary Kingdoms (SDL) diff --git a/build/armhf/raspbian/LegendaryKingdoms.desktop b/build/armhf/raspbian/LegendaryKingdoms.desktop index a758634..f20fcf5 100644 --- a/build/armhf/raspbian/LegendaryKingdoms.desktop +++ b/build/armhf/raspbian/LegendaryKingdoms.desktop @@ -1,7 +1,7 @@ [Desktop Entry] Name=Legendary Kingdoms Comment=Legendary Kingdoms -Version=1.0.7 +Version=1.0.8 TryExec=/usr/local/games/LegendaryKingdoms/LegendaryKingdoms.exe Exec=/usr/local/games/LegendaryKingdoms/LegendaryKingdoms.exe Icon=/usr/local/games/LegendaryKingdoms/icons/legendary-kingdoms-red-128.png diff --git a/build/armhf/raspbian/control b/build/armhf/raspbian/control index 83dc94e..e717729 100644 --- a/build/armhf/raspbian/control +++ b/build/armhf/raspbian/control @@ -1,5 +1,5 @@ Package: legendary-kingdoms -Version: 1.0.7 +Version: 1.0.8 Maintainer: Dael Separa Architecture: armhf Description: Legendary Kingdoms (SDL) diff --git a/build/i386/debian/LegendaryKingdoms.desktop b/build/i386/debian/LegendaryKingdoms.desktop index 05913ef..feb77a0 100644 --- a/build/i386/debian/LegendaryKingdoms.desktop +++ b/build/i386/debian/LegendaryKingdoms.desktop @@ -1,7 +1,7 @@ [Desktop Entry] Name=Legendary Kingdoms Comment=Legendary Kingdoms -Version=1.0.7 +Version=1.0.8 TryExec=/usr/local/games/LegendaryKingdoms/LegendaryKingdoms.exe Exec=/usr/local/games/LegendaryKingdoms/LegendaryKingdoms.exe Icon=/usr/local/games/LegendaryKingdoms/icons/legendary-kingdoms-red-128.png diff --git a/build/i386/debian/control b/build/i386/debian/control index c5d11e0..58a88da 100644 --- a/build/i386/debian/control +++ b/build/i386/debian/control @@ -1,5 +1,5 @@ Package: legendary-kingdoms -Version: 1.0.7 +Version: 1.0.8 Maintainer: Dael Separa Architecture: i386 Description: Legendary Kingdoms (SDL) diff --git a/src/LegendaryKingdoms.cpp b/src/LegendaryKingdoms.cpp index a9b0d7b..06d9d15 100644 --- a/src/LegendaryKingdoms.cpp +++ b/src/LegendaryKingdoms.cpp @@ -26261,6 +26261,8 @@ bool mainScreen(SDL_Window *window, SDL_Renderer *renderer, Book::Type bookID, i auto done = false; + auto first = true; + while (!done) { SDL_SetWindowTitle(window, "Legendary Kingdoms"); @@ -26281,6 +26283,27 @@ bool mainScreen(SDL_Window *window, SDL_Renderer *renderer, Book::Type bookID, i auto scrollDown = false; auto hold = false; + if (first) + { + SDL_Event user_event; + + user_event.type = SDL_MOUSEMOTION; + + user_event.motion.x = controls[0].X; + + user_event.motion.y = controls[0].Y; + + user_event.motion.xrel = controls[0].W / 2; + + user_event.motion.yrel = controls[0].H / 2; + + SDL_PushEvent(&user_event); + + SDL_PumpEvents(); + + first = false; + } + Input::GetInput(renderer, controls, current, selected, scrollUp, scrollDown, hold); if (selected && current >= 0 && current < controls.size())