diff --git a/deps/Makefile b/deps/Makefile index c82a263..96b61c9 100644 --- a/deps/Makefile +++ b/deps/Makefile @@ -144,6 +144,15 @@ CMAKE += -DCMAKE_CXX_COMPILER_AR=$(CMAKE_AR) CMAKE += -DCMAKE_RANLIB=$(CMAKE_RANLIB) CMAKE += -DCMAKE_C_COMPILER_RANLIB=$(CMAKE_RANLIB) CMAKE += -DCMAKE_CXX_COMPILER_RANLIB=$(CMAKE_RANLIB) +ifeq ($(shell uname -s),Darwin) +CMAKE += -DCMAKE_CROSSCOMPILING=ON +CMAKE += -DCMAKE_SYSTEM_NAME=Generic +endif +endif + +# fix cmake forcing SDK for us +ifeq ($(MACOS),true) +CMAKE += -DCMAKE_OSX_SYSROOT="macosx" endif # fix cross-compilation for windows diff --git a/src/emscripten/shell.html b/src/emscripten/shell.html index d886116..8a372f8 100644 --- a/src/emscripten/shell.html +++ b/src/emscripten/shell.html @@ -27,7 +27,7 @@ display: none; image-rendering: pixelated; image-rendering: crisp-edges; - position: absolute; + position: fixed; transform-origin: 0 0 0; transform: scale(calc(1 / var(--device-pixel-ratio))); width: 100vw; @@ -93,6 +93,7 @@