View unanswered posts | View active topics It is currently Sat Apr 20, 2019 2:31 am



This topic is locked, you cannot edit posts or make further replies.  [ 42 posts ]  Go to page Previous  1, 2
Fullscreen on startup 
Author Message
Veteran

Joined: Wed Aug 04, 2004 5:43 pm
Posts: 861
Location: Sloop
Reply with quote
Post 
There are quite a few games that allow you to turn off the music but leave sound effects enabled, effectively letting you substitute your own music. Not that this has anything to do with the volume bar...


Thu Jun 19, 2008 6:24 pm
Profile
New Member

Joined: Sat Aug 23, 2008 2:16 pm
Posts: 3
Reply with quote
Post 
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:
Code:
    if(argc >= 2) event::load_image(argv[1]);

- Replace it with the following lines:
Code:
    if(argc >= 2) {
      event::load_image(argv[1]);
      event::toggle_menubar();
      event::toggle_statusbar();
      event::toggle_fullscreen();
    }

- 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" :))


Sun Oct 26, 2008 1:34 pm
Profile
Rookie

Joined: Sun Jun 15, 2008 11:43 am
Posts: 10
Reply with quote
Post 
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:
Code:
    if(argc >= 2) event::load_image(argv[1]);

- Replace it with the following lines:
Code:
    if(argc >= 2) {
      event::load_image(argv[1]);
      event::toggle_menubar();
      event::toggle_statusbar();
      event::toggle_fullscreen();
    }

- 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" :))


Could anyone compile a version like that and host it somewhere?

not really had much luck getting a compile working here.

Thanks.


Wed Dec 31, 2008 6:17 am
Profile
Regular
User avatar

Joined: Tue Mar 07, 2006 10:32 am
Posts: 347
Location: The Netherlands
Reply with quote
Post 
What are you compiling it on? Compiling bsnes isn't that difficult.


Wed Dec 31, 2008 4:04 pm
Profile
Reply with quote
Post 
Alright, I'll add a checkbox for "Start in Fullscreen Mode".


Wed Dec 31, 2008 11:14 pm
Trooper
User avatar

Joined: Tue Apr 19, 2005 11:08 pm
Posts: 376
Location: DFW area, TX USA
Reply with quote
Post 
sweet!


Thu Jan 01, 2009 4:55 am
Profile WWW
Rookie

Joined: Sun Jun 15, 2008 11:43 am
Posts: 10
Reply with quote
Post 
byuu wrote:
Alright, I'll add a checkbox for "Start in Fullscreen Mode".


Thankyou thankyou.

us frontend people salute you :D


Fri Jan 02, 2009 6:11 am
Profile
Rookie

Joined: Sun Jun 15, 2008 11:43 am
Posts: 10
Reply with quote
Post 
Verdauga Greeneyes wrote:
What are you compiling it on? Compiling bsnes isn't that difficult.


vs2008 is all i got, and couldn't seem to get it to 'go'


Fri Jan 02, 2009 9:19 am
Profile
Regular
User avatar

Joined: Tue Mar 07, 2006 10:32 am
Posts: 347
Location: The Netherlands
Reply with quote
Post 
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


Fri Jan 02, 2009 10:05 am
Profile
Reply with quote
Post 
You'd also want MinGW with GCC4, as it's quite a bit faster.

Anyway, look at the wip5 thread I just posted. Has a link with the fullscreen option in there. I'll put a checkbox for it in the main GUI (probably) in the final release. But for now, it should get you what you wanted.


Fri Jan 02, 2009 12:03 pm
Lurker

Joined: Mon Mar 10, 2008 11:36 pm
Posts: 199
Reply with quote
Post 
I was going to put up MinGW with GCC that I put together that works. But the zip is over 180mb. I try make it smaller and it turn out 161mb. Too big to host. :roll:

Unzip is about 552mb.

_________________
Window Vista Home Premium 32-bit / Intel Core 2 Quad Q6600 2.40Ghz / 3.00 GB RAM / Nvidia GeForce 8500 GT


Fri Jan 02, 2009 7:00 pm
Profile
Trooper
User avatar

Joined: Tue Apr 19, 2005 11:08 pm
Posts: 376
Location: DFW area, TX USA
Reply with quote
Post 
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.


Sat Jan 03, 2009 11:32 am
Profile WWW
Reply with quote
Post 
It's up to whatever is launching bsnes that chooses what happens first.

If Powerstrip is also launching bsnes, then it needs to switch first and/or wait longer. Not much I can do about that ... maybe write some sort of scripting app to swap resolution and then start bsnes?


Sat Jan 03, 2009 11:38 am
Trooper
User avatar

Joined: Tue Apr 19, 2005 11:08 pm
Posts: 376
Location: DFW area, TX USA
Reply with quote
Post 
Its no big deal really. I figured it was worth a shot, but its nothing to get in a twist over. What I did instead was install an small app that saves and restores my desktop icons so I can switch resolutions and not have to worry about my icons getting scattered.


Sat Jan 03, 2009 3:31 pm
Profile WWW
Rookie

Joined: Sun Jun 15, 2008 11:43 am
Posts: 10
Reply with quote
Post 
great

i think i'll just wait for the next binary


Mon Jan 05, 2009 12:11 pm
Profile
Rookie

Joined: Sun Jun 15, 2008 11:43 am
Posts: 10
Reply with quote
Post 
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


Tue Jan 20, 2009 10:14 am
Profile
Trooper
User avatar

Joined: Tue Apr 19, 2005 11:08 pm
Posts: 376
Location: DFW area, TX USA
Reply with quote
Post 
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


Tue Mar 10, 2009 6:53 am
Profile WWW
Display posts from previous:  Sort by  
This topic is locked, you cannot edit posts or make further replies.   [ 42 posts ]  Go to page Previous  1, 2

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software.