Enterprise Forever

:UK => Emulators => Topic started by: dangerman on 2017.December.22. 12:44:26

Title: ep128emu fullscreen
Post by: dangerman on 2017.December.22. 12:44:26
Haven't looked at ep128emu for a while, but really happy to see some new developments this year. Brilliant to see that there's now mouse support. I'm loving using a mouse with Boxsoft Paintbox.

I have one question - is it possible to start the emulator full screen by default? So that I don't have to press F9 every time I start? (I'm running on Linux btw). I remember back in version 1, there was a fullscreen command line switch but that doesn't seem to work in version 2.

Thank you!
Title: Re: ep128emu fullscreen
Post by: IstvanV on 2017.December.22. 15:45:40
There is no command line option for that currently. If you can build the emulator from the source code, then the default can be changed in line 63 of gui/gui.cpp:
Code: C++
  1.   displayMode = 0;
0: windowed with menu bar
1: windowed, no menu bar
2: fullscreen with menu bar
3: fullscreen, no menu bar, the mouse cursor is grabbed
Title: Re: ep128emu fullscreen
Post by: dangerman on 2017.December.22. 17:38:48
Thanks IstanV. I'll try that out.
Title: Re: ep128emu fullscreen
Post by: dangerman on 2017.December.22. 23:39:24
In fact, I decided to add a display.fullscreen configuration option to src/emucfg.cpp and src/emucfg.hpp

Then I modified gui/gui.cpp like this:
Code: [Select]
 if ( config.display.fullscreen <= 3 ) {
    displayMode = (int)config.display.fullscreen;
  } else {
    displayMode = 0;
  }

So now it's possible to add a display.fullscreen option into an ASCII config file.