[2 Requests] Screen Stretch + Start in Full Screen

I've tried adding it to window.onload, and can't get it to work any better. I have the following and it just gives a black screen within a small window, I have also disabled the fullscreen plugin efore running too.


//=============================================================================
// main.js
//=============================================================================

PluginManager.setup($plugins);

window.onload =
function(){Graphics._switchFullScreen();};
function(){SceneManager.run(Scene_Boot);};


I also tried with


function(){Graphics._requestFullScreen();};


and get the same results
That is because it appears you are trying to write it as if it were another plugin. You need to edit the actual main.js file.


This is exactly how my main.js file looks and it works fine for me. Give it a shot and let me know if it works for you as well.

Code:
//=============================================================================
// main.js 1.3.3
//=============================================================================

PluginManager.setup($plugins)

window.onload = function() {
    Graphics._requestFullScreen() // Added for Auto-Fullscreen
    SceneManager.run(Scene_Boot)
}
Oh ok, I see, I wasnt aware that it was only one function this might help with an other issue I posted on too, gonna try it now, thanks
No it still shows the window first even after copy pasting yours exactly. that's not really a big problem though IMO, maybe it has to do with resolution, what resolution are you running your game at? I'm testing at both 1280x720 and 1360x768
I run 1920x1080 for my setup.


It is a bit odd its not working for you, and it actually has me at a loss as to why :/


When I get some more time Ill look and see what else could be causing it.


Edit: Went ahead and did a completely clean project test with 0 plugins active and its working as it is in my main game, so now I really am confused as to how its not working, unless one of your other plugins is changing it somehow.
I tried disabling all my plugins and testing both with playtesting and deployed versions, and still no difference. The only thing I can think of would be my display driver, I have recently done a new install of windows and haven't gotten around to installing geforce experience yet, so I am probably using outdated drivers.
Could be worth a shot to try, as I let *mostly* everything update when it ask to. Hopefully something will click and let it work for you.


Cause if its not another plugin causing problems then I honestly have no clue why it wouldn't be working, sadly.
I updated the main.js edit to achieve the full screen in both the web and standalone versions for RMMV! You have to request full screen, boot the engine, enable stretch mode, and then update all elements.

Code:
//=============================================================================
// main.js
//=============================================================================

PluginManager.setup($plugins);

window.onload = function() {
    Graphics._requestFullScreen()
    SceneManager.run(Scene_Boot);
    Graphics._stretchEnabled = true;
    Graphics._updateAllElements()
};

Original thread: https://forums.rpgmakerweb.com/threads/2-requests-screen-stretch-start-in-full-screen.46455/