How do i fix the black bars?

Hello.
when you play your rpg maker mv game and put it to full screen you see these black bars.
is there any way to fix it? like a plugin or option?
Capture.PNG
That means your game's screen doesn't fill the entire screen. Also known as your game's screen size has not the same aspect ratio as your current display resolution.

The engine when upscaling your game to fill the screen, makes sure to not stretch it horizontally. IDK if there is a way to deactivate this, but it would look ugly anyway so I'd advise to not try. Just as reference this is how it would look like.
1599530838082.png


In order to fix that the most proper way possible (? or so I think), you will need to change your game's resolution/screen size through a script. However what resolution to change it will depend on the system's current resolution and the height of your game.

Let's say your game is the default 624 and your system is currently at 1920x1080

1920 x 624 / 1080 = 1109 (rounded down)
Thank you!
Not necessarily. In your display settings you can change scaling options between stretch, tile, and maintain aspect ratio (or something along those lines). If you have maintain aspect ratio and your game window size settings have a different aspect ratio to your monitor, you will get those black bars. This has nothing to do with RPG Maker, and there isn't much you can do in RPG Maker to change it. You could modify your game window size to have the same aspect ratio, but then it will be a problem for others who don't have the same monitor as you.

Changing the scaling option to stretch will make it fill the screen, but if the aspect ratio is different, you're going to get distortion.
Hmm good to know that, didn't know that the fullscreen mode was reliant on the current system settings. I sort of assumed it was just like, idk, Chrome going fullscreen, in that it stretches up to the screen and then it makes sure to position the viewport properly.

Thanks Shaz for the info!

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-fix-the-black-bars.126964/