mirror of https://github.com/stella-emu/stella.git
fixed potential Clang warnings
This commit is contained in:
parent
8f0547f995
commit
8b4ed1ae08
|
@ -179,14 +179,14 @@ Common::Point TiaOutputWidget::getToolTipIndex(const Common::Point& pos) const
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
string TiaOutputWidget::getToolTip(const Common::Point& pos) const
|
string TiaOutputWidget::getToolTip(const Common::Point& pos) const
|
||||||
{
|
{
|
||||||
Common::Point idx = getToolTipIndex(pos);
|
const Common::Point& idx = getToolTipIndex(pos);
|
||||||
|
|
||||||
if(idx.x < 0)
|
if(idx.x < 0)
|
||||||
return EmptyString;
|
return EmptyString;
|
||||||
|
|
||||||
uInt32 height = instance().console().tia().height();
|
const uInt32 height = instance().console().tia().height();
|
||||||
// limit to 274 lines (PAL default without scaling)
|
// limit to 274 lines (PAL default without scaling)
|
||||||
uInt32 yStart = height <= FrameManager::Metrics::baseHeightPAL
|
const uInt32 yStart = height <= FrameManager::Metrics::baseHeightPAL
|
||||||
? 0 : (height - FrameManager::Metrics::baseHeightPAL) >> 1;
|
? 0 : (height - FrameManager::Metrics::baseHeightPAL) >> 1;
|
||||||
const Int32 i = idx.x + (yStart + idx.y) * instance().console().tia().width();
|
const Int32 i = idx.x + (yStart + idx.y) * instance().console().tia().width();
|
||||||
uInt8* tiaOutputBuffer = instance().console().tia().outputBuffer();
|
uInt8* tiaOutputBuffer = instance().console().tia().outputBuffer();
|
||||||
|
|
|
@ -296,7 +296,7 @@ Common::Point TiaZoomWidget::getToolTipIndex(const Common::Point& pos) const
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
string TiaZoomWidget::getToolTip(const Common::Point& pos) const
|
string TiaZoomWidget::getToolTip(const Common::Point& pos) const
|
||||||
{
|
{
|
||||||
Common::Point idx = getToolTipIndex(pos);
|
const Common::Point& idx = getToolTipIndex(pos);
|
||||||
|
|
||||||
if(idx.x < 0)
|
if(idx.x < 0)
|
||||||
return EmptyString;
|
return EmptyString;
|
||||||
|
|
Loading…
Reference in New Issue