Welcome, Guest. Please login or register.


Author Topic: ep128emu fullscreen (Read 9339 times)

Offline dangerman

  • EP fan
  • *
  • Posts: 100
ep128emu fullscreen
« 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!

Offline IstvanV

  • EP addict
  • *
  • Posts: 4822
Re: ep128emu fullscreen
« Reply #1 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

Offline dangerman

  • EP fan
  • *
  • Posts: 100
Re: ep128emu fullscreen
« Reply #2 on: 2017.December.22. 17:38:48 »
Thanks IstanV. I'll try that out.

Offline dangerman

  • EP fan
  • *
  • Posts: 100
Re: ep128emu fullscreen
« Reply #3 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.