diff options
| -rw-r--r-- | src/core.c | 12 | ||||
| -rw-r--r-- | templates/advance_game/Makefile | 2 |
2 files changed, 7 insertions, 7 deletions
@@ -4615,6 +4615,7 @@ static void KeyCallback(GLFWwindow *window, int key, int scancode, int action, i // NOTE: Before closing window, while loop must be left! } +#if defined(SUPPORT_SCREEN_CAPTURE) else if (key == GLFW_KEY_F12 && action == GLFW_PRESS) { #if defined(SUPPORT_GIF_RECORDING) @@ -4657,14 +4658,13 @@ static void KeyCallback(GLFWwindow *window, int key, int scancode, int action, i } } else -#endif // SUPPORT_GIF_RECORDING -#if defined(SUPPORT_SCREEN_CAPTURE) +#endif // SUPPORT_GIF_RECORDING { TakeScreenshot(TextFormat("screenshot%03i.png", screenshotCounter)); screenshotCounter++; } -#endif // SUPPORT_SCREEN_CAPTURE } +#endif // SUPPORT_SCREEN_CAPTURE else { // WARNING: GLFW could return GLFW_REPEAT, we need to consider it as 1 @@ -5987,6 +5987,7 @@ void UWPKeyDownEvent(int key, bool down, bool controlKey) // Time to close the window. CORE.Window.shouldClose = true; } +#if defined(SUPPORT_SCREEN_CAPTURE) else if (key == KEY_F12 && down) { #if defined(SUPPORT_GIF_RECORDING) @@ -6020,14 +6021,13 @@ void UWPKeyDownEvent(int key, bool down, bool controlKey) } } else -#endif // SUPPORT_GIF_RECORDING -#if defined(SUPPORT_SCREEN_CAPTURE) +#endif // SUPPORT_GIF_RECORDING { TakeScreenshot(TextFormat("screenshot%03i.png", screenshotCounter)); screenshotCounter++; } -#endif // SUPPORT_SCREEN_CAPTURE } +#endif // SUPPORT_SCREEN_CAPTURE else { CORE.Input.Keyboard.currentKeyState[key] = down; diff --git a/templates/advance_game/Makefile b/templates/advance_game/Makefile index 7097e2c2..65c14cdf 100644 --- a/templates/advance_game/Makefile +++ b/templates/advance_game/Makefile @@ -237,7 +237,7 @@ ifeq ($(PLATFORM),PLATFORM_WEB) # -O2 # optimization level 2, if used, also set --memory-init-file 0 # -s USE_GLFW=3 # Use glfw3 library (context/input management) # -s ALLOW_MEMORY_GROWTH=1 # to allow memory resizing -> WARNING: Audio buffers could FAIL! - # -s TOTAL_MEMORY=16777216 # to specify heap memory size (default = 16MB) + # -s TOTAL_MEMORY=16777216 # to specify heap memory size (default = 16MB) (67108864 = 64MB) # -s USE_PTHREADS=1 # multithreading support # -s WASM=0 # disable Web Assembly, emitted by default # -s ASYNCIFY # lets synchronous C/C++ code interact with asynchronous JS |
