Commit Graph

377 Commits

Author SHA1 Message Date
Stephen Anthony 836137c7fc Fix minor warning in clang. 2021-04-06 13:15:49 -02:30
thrust26 f3e1e559cf fixed HiDPI mode
(note to myself: sometimes initialization is bad)
2021-04-06 16:53:44 +02:00
thrust26 e0585212b8 adapt desktop size and maximum TIA zoom level to display used 2021-04-06 15:56:01 +02:00
Stephen Anthony f28784112a libretro: Don't reload non-existent surfaces. 2021-01-23 13:08:16 -03:30
Stephen Anthony 95c8203f8d Fix final issue with snapshots not loading in RomInfoWidget. 2021-01-23 12:57:51 -03:30
Christian Speckner 3a54adeca2 Merge remote-tracking branch 'origin/master' into feature/fix-surfaces 2021-01-19 20:44:58 +01:00
Stephen Anthony 9f74a780ed Fix crash when FrameBuffer message surfaces haven't been created.
The next task is to move all FrameBuffer message-related functionality into its own class.
2021-01-16 15:27:18 -03:30
thrust26 d9c8750d01 renamed pause dimming setting 2021-01-14 09:40:02 +01:00
thrust26 27118f3ed0 added option to disable emulation shading in pause mode via command line (resolves #755) 2021-01-14 09:32:39 +01:00
Stephen Anthony 6187d3b542 Attempt to fix continuous creation of dialog surfaces without cleanup, causing crashes on R77.
Remove cache of surfaces from FrameBuffer, into each dialog that owns it.
Make surfaces be unique_ptr instead of shared_ptr, so we can be sure cleanup occurs.
2021-01-13 16:24:09 -03:30
thrust26 b2acd8b266 added missing re-rendering 2021-01-12 11:23:16 +01:00
Stephen Anthony 21438a82cc Yearly update to copyright for 2021. 2021-01-05 18:42:43 -03:30
Stephen Anthony 5332758281 Merge branch 'master' into feature/full-on-sqlite 2020-12-21 22:45:44 -03:30
thrust26 f396ae421c limited redraw debug output to DEBUG_BUILD 2020-12-21 09:14:42 +01:00
Stephen Anthony 39b42bca55 Merge branch 'master' into feature/full-on-sqlite 2020-12-20 19:03:15 -03:30
Stephen Anthony 11241b9871 More conversion to brace syntax. 2020-12-20 18:14:28 -03:30
Stephen Anthony 60c991e171 Fix segfault when exceptions are thrown on errors.
That was exactly the point of exceptions; to NOT crash the app!
2020-12-20 13:39:28 -03:30
thrust26 d7bb07fc55 added hotkeys for Input Devices & Ports settings
added hotkeys for Game Properties/Controller settings
added new global hotkey group for new hotkeys
add a few more tooltips
updated doc
2020-12-17 16:37:51 +01:00
Stephen Anthony 00d241c67b Some fixes for suggestions from clang-tidy. 2020-12-16 16:24:46 -03:30
Stephen Anthony b49fa9583c Fix compile warnings in Xcode. 2020-12-06 23:43:11 -03:30
Stephen Anthony 82392944ad Fix clang warning. 2020-12-06 22:23:42 -03:30
thrust26 3eec0defce improved playback sound muting 2020-12-06 21:17:56 +01:00
thrust26 ee8734ce14 added sound to Time Machine playback
fixed playback speed
updated docs
2020-12-06 12:08:25 +01:00
thrust26 48e3f85a9f added shading to TIA surface when emulation paused or dialog on top 2020-12-01 22:21:23 +01:00
thrust26 833ce27d37 defined high score properties for many ROMs
added option to limit number of chars for text input
added tooltips to High Scores dialogs and widgets
updated docs
2020-11-30 18:52:42 +01:00
thrust26 c116ed8d25 Merge branch 'master' into feature-highscores 2020-11-28 20:10:17 +01:00
thrust26 cbbe6fbe99 fixed doc 2020-11-25 17:23:05 +01:00
thrust26 6ec8693110 fixed small font for launcher 2020-11-22 21:58:49 +01:00
thrust26 36a3f9843e removed special colors and drawing for Dialog in background 2020-11-14 10:03:29 +01:00
thrust26 7fb21af0b2 added a full render when event WINDOW_EXPOSED and WINDOW_RESIZED are handled
stopped screen from changing frames when 'Pause' is displayed
2020-11-13 19:53:19 +01:00
thrust26 6917873c2f improved fullscreen message in debugger mode 2020-11-13 16:12:33 +01:00
thrust26 74206a8c4d fixed UI palette update crash
fixed garbage when switching state in fullscreen modes
2020-11-13 16:00:19 +01:00
Stephen Anthony fb5df8332b Update Xcode for class addition.
Comment out code that causes a crash on Mac.
2020-11-13 10:05:11 -03:30
thrust26 7708a9a692 fixed missing render when a stacked dialog was closed in emulation 2020-11-13 11:18:25 +01:00
thrust26 56f8af1d8f fixed forced full redraws
force full UI redraw when UI palette changes
2020-11-13 09:36:57 +01:00
thrust26 df16dcbe50 refactored UI ticks 2020-11-12 18:14:26 +01:00
thrust26 3063752f60 further minimized UI redraws when message is displayed 2020-11-12 11:50:26 +01:00
thrust26 e93e4b8fdb minimized UI redraws and renderings when message is displayed
refactored message creation
2020-11-12 10:43:04 +01:00
thrust26 9f88a116a4 activated enhanced "full" redraw logic 2020-11-11 15:37:32 +01:00
thrust26 e7b7bfa3cd initial commit for #719 2020-11-10 19:53:36 +01:00
Stephen Anthony 7cf72d7962 Remove redundant define, which was already inside the same define. 2020-10-25 11:28:35 -02:30
Stephen Anthony b6d18845d8 Fairly huge refactoring of FrameBuffer class into FBBackend and friends.
Only tested in Linux and libretro for now; Windows and Mac will follow soon.
2020-10-23 10:27:06 -02:30
Stephen Anthony cf737d59d0 A few more FrameBuffer cleanups.
- refactored a block of code that was essentially the same in 3 different places
2020-10-16 14:19:15 -02:30
Stephen Anthony 01b23e4116 A few more cleanups relating to Common::Size vs. separate components. 2020-10-13 21:26:05 -02:30
Stephen Anthony e15d27dc96 Started cleanup of FrameBuffer class.
- Moved Video mode stuff into separate class
- Fix bug with aspect correction in fullscreen mode still giving graphical artifacts
2020-10-13 10:47:37 -02:30
thrust26 7fbcc95c19 Display zoom factor when switch from/to fullscreen mode 2020-10-08 21:34:00 +02:00
thrust26 2464094694 changed plain video mode into no correct aspect ratio mode
updated docs
2020-10-05 19:25:04 +02:00
thrust26 5a7f1fb914 Merge branch 'master' into feature-highscores 2020-07-31 10:47:49 +02:00
Christian Speckner 205c532398 Remove misleading comment. 2020-07-26 21:57:00 +02:00
thrust26 c3e156f9b5 started adding playback mode (see #678) 2020-07-23 12:39:22 +02:00
thrust26 8c2c9ebb60 Added global hot keys for debug options 2020-07-02 23:33:13 +02:00
thrust26 2245d87875 suppress fullscreen mode switches in Time Machine mode (fixes #670) 2020-07-02 09:33:16 +02:00
thrust26 d3455ed607 Added new interface palette 'Dark' 2020-06-21 15:58:58 +02:00
Stephen Anthony 186ead46fb Revert "Remove superfluous 'deltax' parameter in drawString; I have no idea what it was doing there."
This reverts commit 6a180aeda0.

And as soon as I committed it, I suspected it would cause problems :(
2020-06-19 20:25:00 -02:30
Stephen Anthony 6a180aeda0 Remove superfluous 'deltax' parameter in drawString; I have no idea what it was doing there. 2020-06-19 20:02:00 -02:30
Stephen Anthony eafa29a520 Make sure long messages overlaid on framebuffer don't overflow display surface. 2020-06-19 19:55:27 -02:30
thrust26 66be9cf320 updated doc (adapting refresh not available for macOS)
added event and hotkey for adapting refresh rate
fixed endless loop in global hotkeys
2020-05-24 10:03:53 +02:00
thrust26 0f751d268c fix window position saving when switching from/to fullscreen mode
suppress fullscreen UI message outside emulation mode
2020-05-19 08:53:11 +02:00
thrust26 987bfaab1d improved refresh rate code 2020-05-18 21:13:18 +02:00
thrust26 16f5797e31 added two more methods to global hotkeys
updated and restructured hotkey documentation
2020-05-16 13:00:38 +02:00
thrust26 16a3280b56 added four global hotkeys which allow selecting and changing several adjustable settings (addresses #631) 2020-05-16 09:50:16 +02:00
thrust26 c06a60d704 added global hotkeys (pageup/down) for current displayed setting (or volume) 2020-05-14 21:18:55 +02:00
thrust26 a6df70db89 a little bit of polishing 2020-05-14 11:12:56 +02:00
thrust26 020dea9cc8 added UI messages with gauge bars for variable values (partially addresses #631) 2020-05-13 09:32:11 +02:00
thrust26 36c18c2e28 Fixed minimal zoom and message area width 2020-05-11 21:18:49 +02:00
thrust26 754cd90f90 fix window position saving when changing zoom via hotkey 2020-05-07 23:09:11 +02:00
thrust26 d857eaa2b1 Make windows positioning independent for launcher, emulator and debugger (resolves #615) 2020-05-02 16:46:37 +02:00
thrust26 3de15a4250 adjust minimal launcher size based on dialog font 2020-04-30 11:24:10 +02:00
thrust26 17354af0f3 Part 2 of the changes for #600 (UI fonts) 2020-04-29 23:49:00 +02:00
thrust26 b9ec835ef5 Part 1 of the changes for #600 (UI fonts) 2020-04-29 14:25:54 +02:00
thrust26 bdb685644d added 'Turbo" mode 2020-04-19 23:23:11 +02:00
thrust26 b0af3891fe larger infoFont for minimal UI dialogs 2020-03-16 09:26:45 +01:00
thrust26 d3ff85cf1f add 3 large fonts (Terminus 12x24, 14x28 and 16x32)
use 12x24 font for R77 (launcher and dialogs)
improve font selection for ROM info viewer
minor fix for convbdf.c
2020-03-15 17:16:37 +01:00
thrust26 a623843d37 trying to fix compile issues 2020-03-15 08:23:54 +01:00
thrust26 2646934596 add one more intermediate font option to ROM info viewer 2020-03-14 23:29:58 +01:00
thrust26 e4c394a0ac replace launcher font value "small medium" with "small_medium" 2020-03-14 13:52:37 +01:00
thrust26 da3d183e75 replace launcher's small font with bold version
add 'small medium' font to launcher font options
doc update for variable ROM viewer widths and new launcher font size
2020-03-14 11:14:24 +01:00
thrust26 de7284c1a0 define R77 paddle mapping for front ports AND OTA adapter
use "Grab Mouse" to switch mouse cursor in light gun games
2020-02-22 19:03:21 +01:00
thrust26 4b116b3aef initial work on HighScoresDialog 2020-02-11 20:28:06 +01:00
thrust26 e3f1a0f49f initial commit before refactoring 2020-01-19 15:45:32 +01:00
Christian Speckner cef81e0bb5 Settings: remove aspect in favor of scanlines adjust. 2020-01-05 00:36:10 +01:00
Stephen Anthony 9ad47ae5f3 Updated copyright to 2020. Happy New Year to anyone reading this! 2019-12-31 13:48:56 -03:30
thrust26 1295bd5cf6 get lightgun working preliminary 2019-12-30 17:27:28 +01:00
thrust26 24faa4955c Merge branch 'master' of https://github.com/stella-emu/stella into feature-lightgun 2019-12-30 09:48:04 +01:00
thrust26 bfb5bee208 make user aware of grab mouse limitations 2019-12-30 09:46:46 +01:00
thrust26 dbb4328ad5 initial work on lightgun 2019-12-30 09:11:46 +01:00
Stephen Anthony b2c70d7677 First pass at moving to default member initialization.
This fixes potential issues with forgetting to initialize in c'tors.
2019-12-28 21:14:52 -03:30
Stephen Anthony 041af0736c And yet more std::array conversions. Also a fix for overlaid UI message not being displayed. 2019-12-28 15:46:38 -03:30
Stephen Anthony 0c0f732e5f More conversions of C-style to std::array.
That's it for a little while; getting tired now ...
2019-12-27 19:22:09 -03:30
Stephen Anthony b276a1e6a7 Huge refactoring of the palette-related code.
This has been developed ad-hoc over the years, with different subsystems (TIA, UI, phosphor, Blargg, etc).  This is an attempt to consolidate the code, and also move to C++-style arrays.
Still TODO is look into refactoring phosphor stuff out of TIASurface and AtariNTSC classes, since the code is exactly the same, and doesn't really belong in either.
This is a major change, so some testing is definitely required.
2019-12-26 17:28:55 -03:30
Stephen Anthony 5d59be800e Use logical OR instead of bitwise OR. 2019-12-25 13:07:03 -03:30
Christian Speckner c38febc2c1 Update scaling in video dialog instead of framebuffer. 2019-12-17 17:16:37 +01:00
Christian Speckner 5977c8561a Connect tia.filter. 2019-12-17 17:16:37 +01:00
Christian Speckner c4d1473f81 Get rid of smoothing in favor of scaling settings. 2019-12-13 22:46:31 +01:00
Stephen Anthony 025eeba38c Convert some raw arrays to std::array.
Some fixes for warnings from Coverity.
2019-11-14 20:12:45 -03:30
Thomas Jentzsch 05cecb95b9 refactored logging and removed magic numbers 2019-08-14 12:01:15 +02:00
Thomas Jentzsch 0b2ca6572a fix #511 2019-08-10 18:08:53 +02:00
Stephen Anthony 9191f63da2 Fix dirty framebuffer issues in fullscreen TIA mode.
This requires some testing, since it potentially causes slowdowns on older systems.
I cannot find any difference on my test system (and documentation I've read seems to imply
that you should clear the screen before each update, and that it is very fast on most hardware).
2019-06-08 23:01:59 -02:30
Stephen Anthony 4a8f2f80b6 Fix PopupWidget/ContextMenu not positioned correctly in fullscreen mode.
Refactored Rect class.
2019-06-03 19:28:56 -02:30
Stephen Anthony 58b8c3458b Fix UI drawing modes when overlaid on TIA image. 2019-06-03 17:09:07 -02:30