mirror of
https://github.com/celisej567/mcpe.git
synced 2025-12-31 17:49:17 +03:00
Fix Touch In WASM
This commit is contained in:
committed by
iProgramInCpp
parent
65be786140
commit
f62fd3e7f5
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user