mirror of https://github.com/stella-emu/stella.git
Fix minor warnings from clang.
This commit is contained in:
parent
2ab1fc7107
commit
dc1825f81f
|
@ -446,9 +446,6 @@ void RomImageWidget::positionSurfaces()
|
|||
const Common::Size maxSize = fs
|
||||
? instance().frameBuffer().screenSize()
|
||||
: dialog().surface().dstRect().size();
|
||||
const Common::Point minPos = fs
|
||||
? Common::Point(0, 0)
|
||||
: s_dst.point();
|
||||
const Int32 lw = maxSize.w - b * 2;
|
||||
const Int32 lh = maxSize.h - b * 2;
|
||||
// Position at right top
|
||||
|
@ -496,12 +493,14 @@ bool RomImageWidget::handleEvent(Event::Type event)
|
|||
void RomImageWidget::handleMouseUp(int x, int y, MouseButton b, int clickCount)
|
||||
{
|
||||
if(isEnabled() && x >= 0 && x < _w && y >= 0 && y < myImageHeight)
|
||||
{
|
||||
if(myMouseArea == Area::LEFT)
|
||||
changeImage(-1);
|
||||
else if(myMouseArea == Area::RIGHT)
|
||||
changeImage(1);
|
||||
else
|
||||
zoomSurfaces(true);
|
||||
}
|
||||
}
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
|
|
@ -42,7 +42,7 @@ class RomImageWidget : public Widget
|
|||
bool changeImage(int direction = 1);
|
||||
// Toggle zoom via keyboard
|
||||
void toggleImageZoom();
|
||||
void disableImageZoom() { myZoomMode = false; };
|
||||
void disableImageZoom() { myZoomMode = false; }
|
||||
|
||||
uInt64 pendingLoadTime() { return myMaxLoadTime * timeFactor; }
|
||||
|
||||
|
|
Loading…
Reference in New Issue