diff --git a/platforms/sdl/CMakeLists.txt b/platforms/sdl/CMakeLists.txt index 4d34dcf..56f076f 100644 --- a/platforms/sdl/CMakeLists.txt +++ b/platforms/sdl/CMakeLists.txt @@ -13,6 +13,7 @@ if(EMSCRIPTEN) add_link_options(${ARGV}) endfunction() set(CMAKE_EXECUTABLE_SUFFIX ".js") + add_link_options("$<$:-gsource-map>") endif() # Clang diff --git a/source/client/app/Minecraft.cpp b/source/client/app/Minecraft.cpp index 256a124..a84263f 100644 --- a/source/client/app/Minecraft.cpp +++ b/source/client/app/Minecraft.cpp @@ -950,7 +950,7 @@ void Minecraft::sizeUpdate(int newWidth, int newHeight) m_pScreen->setSize(int(Minecraft::width * Gui::InvGuiScale), int(Minecraft::height * Gui::InvGuiScale)); if (m_pInputHolder) - m_pInputHolder->setScreenSize(newWidth, newHeight); + m_pInputHolder->setScreenSize(newWidth * guiScaleMultiplier, newHeight * guiScaleMultiplier); } float Minecraft::getBestScaleForThisScreenSize(int width, int height)