Fix Touch In WASM

This commit is contained in:
TheBrokenRail
2023-11-02 20:44:45 -04:00
committed by iProgramInCpp
parent 65be786140
commit f62fd3e7f5
2 changed files with 2 additions and 1 deletions

View File

@@ -13,6 +13,7 @@ if(EMSCRIPTEN)
add_link_options(${ARGV})
endfunction()
set(CMAKE_EXECUTABLE_SUFFIX ".js")
add_link_options("$<$<CONFIG:DEBUG>:-gsource-map>")
endif()
# Clang

View File

@@ -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)