From c4443715cc4f8c0ae5da98f0e39bd47ca3913960 Mon Sep 17 00:00:00 2001 From: Stephen Anthony Date: Tue, 28 May 2019 11:29:56 -0230 Subject: [PATCH] Make Events for snapshots always available, even when PNG support is disabled. - otherwise, builds with and without PNG support will potentially have different mappings - this makes it very hard to test on devel systems where support is enabled/disabled - basically, events are hard-coded to certain values, and shouldn't change based on support for any particular subsystem Fix warnings from clang. --- src/common/PKeyboardHandler.cxx | 2 +- src/emucore/Event.hxx | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/common/PKeyboardHandler.cxx b/src/common/PKeyboardHandler.cxx index 92e85fca1..0231545c2 100644 --- a/src/common/PKeyboardHandler.cxx +++ b/src/common/PKeyboardHandler.cxx @@ -408,4 +408,4 @@ bool PhysicalKeyboardHandler::handleAltEvent(StellaKey key, StellaMod mod, bool handled = false; return handled; -} \ No newline at end of file +} diff --git a/src/emucore/Event.hxx b/src/emucore/Event.hxx index 3037f3b02..02b01c60d 100644 --- a/src/emucore/Event.hxx +++ b/src/emucore/Event.hxx @@ -94,9 +94,7 @@ class Event DecreasePhosphor, IncreasePhosphor, TogglePhosphor, ToggleJitter, ToggleFrameStats, ToggleTimeMachine, - #ifdef PNG_SUPPORT ToggleContSnapshots, ToggleContSnapshotsFrame, - #endif*/ ToggleColorLoss, TogglePalette, HandleMouseControl, ToggleGrabMouse, ToggleSAPortOrder,