From a9e63c1349a18fccad440f26df4f82bfdf746c2f Mon Sep 17 00:00:00 2001 From: Stephen Anthony Date: Tue, 16 Aug 2022 14:05:33 -0230 Subject: [PATCH] Fix minor compile warning in g++. --- src/gui/RomImageWidget.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/RomImageWidget.cxx b/src/gui/RomImageWidget.cxx index f9c36ed59..23f51c21b 100644 --- a/src/gui/RomImageWidget.cxx +++ b/src/gui/RomImageWidget.cxx @@ -111,7 +111,7 @@ void RomImageWidget::parseProperties(const FSNode& node, bool full) }); } -#ifdef PNG_SUPPORT +#ifdef PNG_SUPPORT if(!full) { myImageIdx = 0; @@ -121,7 +121,7 @@ void RomImageWidget::parseProperties(const FSNode& node, bool full) // Get a valid filename representing a snapshot file for this rom and load the snapshot const string& path = instance().snapshotLoadDir().getPath(); // 1. Try to load first snapshot by property name - string fileName = path + myProperties.get(PropType::Cart_Name) + ".png"; + string fileName = path + myProperties.get(PropType::Cart_Name) + ".png"; mySurfaceIsValid = loadPng(fileName); if(!mySurfaceIsValid) @@ -252,7 +252,7 @@ void RomImageWidget::handleMouseUp(int x, int y, MouseButton b, int clickCount) // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - void RomImageWidget::handleMouseMoved(int x, int y) { - if(x < _w / 2 != myMouseLeft) + if((x < _w / 2) != myMouseLeft) setDirty(); myMouseLeft = x < _w / 2; }