MV (YEP) How to make fullscreem?

Hello, I have instant the Yep Core engine but every time that I change the resolutions, my game look like this:
Oh the Horror

Can someone help me?
it depends on resolution, if you screen resolution is devideable by 48,
than your good, but some screen sizemight not take it lightly.

for exsample, if you game resolution is wider than the height (normally)
but wider, than you get blackbars on top and down, otherwise, if it almost
square, you get blackbars on the side.

so it's totally normal though. (also depending how they set their pc screen 🙂
windows has only a limited number of officially defined screen sizes, and most drivers are limited to those. If they get commands for a different screen size that is not supported by the display driver, then they choose the next larger one and fill the difference with the black border.

theoretically you can eliminate those borders by giving your game the same screen size than your monitor, but that has a lot of problems:
1) the engine has problems handling maps if the screen size is not a multiple of the grid size. So you have to use 1056 instead of 1080 and so on.
2) different players have different monitors, so a screen size that eliminates the border for one computer/monitor will still display those borders on other monitors
3) the engine has problems if the internal screen size of the project is larger than the physical monitor screen size. so you usually want to keep the games screen size lower to make more people be able to play it.
If you want your game to switch to fullscreen, you'll need the following code:
Code:
Graphics._requestFullScreen()

If you want your game to start in fullscreen, you might be interested in one of my plugins: N_StartFullscreen. You can download it directly here: https://github.com/Nolonar/RM_Plugins-StartFullscreen/releases/latest/download/N_StartFullscreen.js

That plugin also adds an "Exit" option, so players can still exit your game, even if they don't know about Alt+F4 (Windows and Ubuntu) or CMD+Q (macOS) or whatever shortcut their Linux distro of choice uses.

Unfortunately, the plugin doesn't work with browsers (yet).
Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/yep-how-to-make-fullscreem.135398/