diff options
| author | Ray <[email protected]> | 2021-12-31 11:01:43 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-12-31 11:01:43 +0100 |
| commit | 4bb894f171f29bb24dbe001730f7ecf7a978d6e8 (patch) | |
| tree | 542b0286383c167d7311d831bc6efaebd82abf10 /src | |
| parent | d91b9171fa4d81dab8bcb84dc7e90a69fc908510 (diff) | |
| download | raylib-4bb894f171f29bb24dbe001730f7ecf7a978d6e8.tar.gz raylib-4bb894f171f29bb24dbe001730f7ecf7a978d6e8.zip | |
tweaks
Diffstat (limited to 'src')
| -rw-r--r-- | src/raylib.h | 4 | ||||
| -rw-r--r-- | src/rcore.c | 7 |
2 files changed, 2 insertions, 9 deletions
diff --git a/src/raylib.h b/src/raylib.h index 9be3e482..1586627d 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -913,7 +913,7 @@ RLAPI bool IsWindowMaximized(void); // Check if wi RLAPI bool IsWindowFocused(void); // Check if window is currently focused (only PLATFORM_DESKTOP) RLAPI bool IsWindowResized(void); // Check if window has been resized last frame RLAPI bool IsWindowState(unsigned int flag); // Check if one specific window flag is enabled -RLAPI void SetWindowState(unsigned int flags); // Set window configuration state using flags +RLAPI void SetWindowState(unsigned int flags); // Set window configuration state using flags (only PLATFORM_DESKTOP) RLAPI void ClearWindowState(unsigned int flags); // Clear window configuration state flags RLAPI void ToggleFullscreen(void); // Toggle window state: fullscreen/windowed (only PLATFORM_DESKTOP) RLAPI void MaximizeWindow(void); // Set window state: maximized, if resizable (only PLATFORM_DESKTOP) @@ -925,7 +925,7 @@ RLAPI void SetWindowPosition(int x, int y); // Set window RLAPI void SetWindowMonitor(int monitor); // Set monitor for the current window (fullscreen mode) RLAPI void SetWindowMinSize(int width, int height); // Set window minimum dimensions (for FLAG_WINDOW_RESIZABLE) RLAPI void SetWindowSize(int width, int height); // Set window dimensions -RLAPI void SetWindowOpacity(float opacity); // Set window opacity, value opacity is between 0.0 and 1.0 (only PLATFORM_DESKTOP) +RLAPI void SetWindowOpacity(float opacity); // Set window opacity [0.0f..1.0f] (only PLATFORM_DESKTOP) RLAPI void *GetWindowHandle(void); // Get native window handle RLAPI int GetScreenWidth(void); // Get current screen width RLAPI int GetScreenHeight(void); // Get current screen height diff --git a/src/rcore.c b/src/rcore.c index c2935634..59308442 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -1566,13 +1566,6 @@ void SetWindowSize(int width, int height) #if defined(PLATFORM_DESKTOP) || defined(PLATFORM_WEB) glfwSetWindowSize(CORE.Window.handle, width, height); #endif -#if defined(PLATFORM_WEB) - //emscripten_set_canvas_size(width, height); // DEPRECATED! - - // TODO: Below functions should be used to replace previous one but they do not seem to work properly - //emscripten_set_canvas_element_size("canvas", width, height); - //emscripten_set_element_css_size("canvas", width, height); -#endif } // Set window opacity, value opacity is between 0.0 and 1.0 |
