diff --git a/CMakeLists.txt b/CMakeLists.txt
index 39809fb..1711d1c 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -56,6 +56,7 @@ if(${PLATFORM} MATCHES "Web")
add_library(png INTERFACE IMPORTED)
set_target_properties(png PROPERTIES
+ INTERFACE_COMPILE_OPTIONS "-sUSE_LIBPNG=1"
INTERFACE_LINK_OPTIONS "-sUSE_LIBPNG=1"
)
@@ -331,7 +332,7 @@ if(${PLATFORM} MATCHES "Web")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EM_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EM_FLAGS}")
- set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${EM_FLAGS} --preload-file ${CMAKE_SOURCE_DIR}/data@/data -sPROXY_TO_PTHREAD")
+ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${EM_FLAGS} --preload-file ${CMAKE_SOURCE_DIR}/data@/data")
target_compile_options(${PROJECT_NAME} PUBLIC
"-Os"
diff --git a/misc/web/index.html b/misc/web/index.html
index 108e109..eed3f5b 100644
--- a/misc/web/index.html
+++ b/misc/web/index.html
@@ -1,143 +1,43 @@
-
-
-
-
-
- Emscripten-Generated Code
-
+
+
-
-
-
-
- emscripten
- Downloading...
-
-
-
-
-
-
- Resize canvas
- Lock/hide mouse pointer
-
-
-
+
-
-
-
-
- var Module = {
- print(...args) {
- // These replacements are necessary if you render to raw HTML
- //text = text.replace(/&/g, "&");
- //text = text.replace(//g, ">");
- //text = text.replace('\n', '
', 'g');
- console.log(...args);
- if (outputElement) {
- var text = args.join(' ');
- outputElement.value += text + "\n";
- outputElement.scrollTop = outputElement.scrollHeight; // focus on bottom
- }
- },
- canvas: canvasElement,
- setStatus: setStatus,
- totalDependencies: 0,
- monitorRunDependencies(left) {
- this.totalDependencies = Math.max(this.totalDependencies, left);
- setStatus(left ? 'Preparing... (' + (this.totalDependencies-left) + '/' + this.totalDependencies + ')' : 'All downloads complete.');
- }
- };
- setStatus('Downloading...');
- window.onerror = () => {
- setStatus('Exception thrown, see JavaScript console');
- spinnerElement.style.display = 'none';
- setStatus = (text) => {
- if (text) console.error('[post-exception status] ' + text);
- };
- };
-
-
-
+
+