raylib/src
Hristo Stamenov ef9f67749a
Fix fullscreen resolution (#1637)
* Always try to set vsync.
Use the internal monitor function to correctly get the display for windows.

* Modified how fullscreen gets toggled.

- Removed the unsetting and setting of the resize callback function. Instead of that I moved the fullscreen flag setting into a more correct place before setting the fullscreen so that this flag can be used in the callback.
- In the resize callback now window size is only set when it is not fullscreen resulting in preserving the window size.
- When going fullscreen the larges resolution is used so that there are no problems of the type when you minimize the window you cannot use anything else in your desktop because the resolution might be too low. If a low res effect is desired one should use render texture (this is the approach all game engines use).

* Set correct return to window in case of fail to get monitor.

* Set the refresh rate on the mode.

* Made changes based on review from @raysan5

Co-authored-by: Jeffery Myers <JeffM2501@gmail.com>
2021-03-08 22:51:10 +01:00
..
external [raudio] Fix load and unload issues with Music (#1588) 2021-02-14 17:37:34 +01:00
camera.h Update year to 2021 2021-01-02 18:15:13 +01:00
CMakeLists.txt Documentation cmake (#1549) 2021-01-26 14:34:27 +01:00
config.h ADDED: Config flag: SUPPORT_STANDARD_FILEIO 2021-03-04 20:36:04 +01:00
core.c Fix fullscreen resolution (#1637) 2021-03-08 22:51:10 +01:00
easings.h Update easings.h (#1210) 2020-04-21 21:17:58 +02:00
gestures.h Update year to 2021 2021-01-02 18:15:13 +01:00
Makefile Update Makefile 2020-12-24 19:08:02 +01:00
models.c Some misc tweaks 2021-03-02 02:03:52 +01:00
physac.h Reviewed defines, try to avoid elif statements 2021-03-02 12:45:23 +01:00
raudio.c Minor struct organization tweak 2021-03-04 12:08:54 +01:00
raudio.h LoadMusicStreamFromMemory (#1606) 2021-02-22 19:45:52 +01:00
raylib.dll.rc Added resource file for DLL compilation info 2020-08-19 11:59:50 +02:00
raylib.dll.rc.data Avoid architecture selection on gcc, use correct gcc version instead 2020-08-20 17:37:01 +02:00
raylib.h ADDED: Required callbacks 2021-03-08 18:48:27 +01:00
raylib.ico Updated icon data 2018-09-26 16:02:42 +02:00
raylib.rc Update resource file 2020-12-23 13:48:43 +01:00
raylib.rc.data Update resource file 2020-12-23 13:48:43 +01:00
raymath.h Review formatting 2021-03-02 00:31:04 +01:00
rglfw.c Update year to 2021 2021-01-02 18:15:13 +01:00
rlgl.h Some naming tweaks 2021-03-04 20:22:58 +01:00
rmem.h Remove trailing spaces 2020-12-23 15:03:26 +01:00
rnet.h Fixes to make rnet and it's examples build on Windows in visual studio 2019. (#1602) 2021-02-20 21:13:20 +01:00
shapes.c REVIEWED: CheckCollisionLines() 2021-03-01 23:39:08 +01:00
shell.html Get icons back on shell.html 2020-03-30 21:34:45 +02:00
text.c REVIEWED: TextFormat() #1626 2021-03-03 19:55:09 +01:00
textures.c ADDED: Config flag: SUPPORT_STANDARD_FILEIO 2021-03-04 20:36:04 +01:00
utils.c ADDED: Required callbacks 2021-03-08 18:48:27 +01:00
utils.h Update year to 2021 2021-01-02 18:15:13 +01:00
uwp_events.h UWP rework (#1231) 2020-04-30 19:48:39 +02:00