Fullscreen on startup
So, back to the topic of starting full screen... 
For anyone who is interested in this feature: it is quite easy to implement into the source code yourself, for personal use. Here's what you do:
- Open the file "src/ui/main.cpp"
- Remove line 152:
- Replace it with the following lines:
- Compile bsnes.
This way, bsnes will normally start windowed, but when you load a game from the command line, it will start full screen without the status bar and menu bar. Perfect for when you're running bsnes from a game/emulator frontend/mediacenter.
(BTW, thanks byuu, for implementing "when video exceeds screen size and is scaled down, aspect ratio is now maintained"
)

For anyone who is interested in this feature: it is quite easy to implement into the source code yourself, for personal use. Here's what you do:
- Open the file "src/ui/main.cpp"
- Remove line 152:
Code: Select all
if(argc >= 2) event::load_image(argv[1]);
Code: Select all
if(argc >= 2) {
event::load_image(argv[1]);
event::toggle_menubar();
event::toggle_statusbar();
event::toggle_fullscreen();
}
This way, bsnes will normally start windowed, but when you load a game from the command line, it will start full screen without the status bar and menu bar. Perfect for when you're running bsnes from a game/emulator frontend/mediacenter.
(BTW, thanks byuu, for implementing "when video exceeds screen size and is scaled down, aspect ratio is now maintained"

Could anyone compile a version like that and host it somewhere?GeertJan wrote:So, back to the topic of starting full screen...
For anyone who is interested in this feature: it is quite easy to implement into the source code yourself, for personal use. Here's what you do:
- Open the file "src/ui/main.cpp"
- Remove line 152:- Replace it with the following lines:Code: Select all
if(argc >= 2) event::load_image(argv[1]);
- Compile bsnes.Code: Select all
if(argc >= 2) { event::load_image(argv[1]); event::toggle_menubar(); event::toggle_statusbar(); event::toggle_fullscreen(); }
This way, bsnes will normally start windowed, but when you load a game from the command line, it will start full screen without the status bar and menu bar. Perfect for when you're running bsnes from a game/emulator frontend/mediacenter.
(BTW, thanks byuu, for implementing "when video exceeds screen size and is scaled down, aspect ratio is now maintained")
not really had much luck getting a compile working here.
Thanks.
-
- Regular
- Posts: 347
- Joined: Tue Mar 07, 2006 10:32 am
- Location: The Netherlands
-
- Trooper
- Posts: 376
- Joined: Tue Apr 19, 2005 11:08 pm
- Location: DFW area, TX USA
- Contact:
-
- Regular
- Posts: 347
- Joined: Tue Mar 07, 2006 10:32 am
- Location: The Netherlands
Yes, MSVC has some issues with the current version of bsnes. Since byuu switched to GCC then to Linux entirely, it's difficult for him to fix. Try the bundled installer from here and install the DirectX SDK, then copy/paste all the files from its include directory to MinGW's include directory. Oh, and copy/rename mingw32-make.exe from MinGW's bin directory to make.exe
-
- Trooper
- Posts: 376
- Joined: Tue Apr 19, 2005 11:08 pm
- Location: DFW area, TX USA
- Contact:
Well I tried the new fullscreen at start up feature and it unfortunately doesn't jive with powerstrip's custom resolution change feature. When I start bsnes, the resolution is changed by powerstrip, but something gets funky and bsnes displays in a small square in the middle of the desktop. I have to click on it and then hit escape to re-activate fullscreen. Must be something to do with how bsnes goes into fullscreen mode in relation to how powerstrip changes the resolution. In the past with other programs, they will jump to fullscreen before the resolution change no problem. I'm getting the sense that bsnes is doing it after the change.
-
- Trooper
- Posts: 376
- Joined: Tue Apr 19, 2005 11:08 pm
- Location: DFW area, TX USA
- Contact:
works great in the new version, however there is an annoyance...
there doesn't appear to be (from what i can tell) a way of the menus being hidden unless after a game boots into full screen you press 'esc' to hide the menus.
Sorry to sound like a moaner after you implemented it as a request of mine but would it be at all possible to have it either set to not show the menus at startup w/ fullscreen or an option.
thanks again
there doesn't appear to be (from what i can tell) a way of the menus being hidden unless after a game boots into full screen you press 'esc' to hide the menus.
Sorry to sound like a moaner after you implemented it as a request of mine but would it be at all possible to have it either set to not show the menus at startup w/ fullscreen or an option.
thanks again
-
- Trooper
- Posts: 376
- Joined: Tue Apr 19, 2005 11:08 pm
- Location: DFW area, TX USA
- Contact:
Just bumping this back up in that the latest official release (v.040) now works correctly with powerstrip's application profile feature. I'm now able to launch bsnes into fullscreen and powerstrip is able to set the resolution to 1440x1050 without any problems.
NES NTSC palette file:
http://www.firebrandx.com/downloads/fbx2pal.zip
http://www.firebrandx.com/downloads/fbx2pal.zip