mirror of https://github.com/stella-emu/stella.git
parent
0aedc185e1
commit
0048beaa89
|
@ -572,7 +572,7 @@ void RomListWidget::drawWidget(bool hilite)
|
|||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
Common::Rect RomListWidget::getLineRect() const
|
||||
{
|
||||
const int yoffset = (_selectedItem - _currentPos) * _fontHeight,
|
||||
const int yoffset = std::max(0, (_selectedItem - _currentPos) * _fontHeight),
|
||||
xoffset = CheckboxWidget::boxSize() + 10;
|
||||
|
||||
return Common::Rect(2 + xoffset, 1 + yoffset,
|
||||
|
@ -582,7 +582,7 @@ Common::Rect RomListWidget::getLineRect() const
|
|||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
Common::Rect RomListWidget::getEditRect() const
|
||||
{
|
||||
const int yoffset = (_selectedItem - _currentPos) * _fontHeight;
|
||||
const int yoffset = std::max(0, (_selectedItem - _currentPos) * _fontHeight);
|
||||
|
||||
return Common::Rect(2 + _w - _bytesWidth, 1 + yoffset,
|
||||
_w, _fontHeight + yoffset);
|
||||
|
|
|
@ -932,7 +932,7 @@ bool CartDetector::isProbablyFE(const ByteBuffer& image, uInt32 size)
|
|||
{ 0x20, 0x00, 0xD0, 0xC6, 0xC5 }, // JSR $D000; DEC $C5
|
||||
{ 0x20, 0xC3, 0xF8, 0xA5, 0x82 }, // JSR $F8C3; LDA $82
|
||||
{ 0xD0, 0xFB, 0x20, 0x73, 0xFE }, // BNE $FB; JSR $FE73
|
||||
{ 0x20, 0x00, 0xF0, 0x84, 0xD6 } // JSR $F000; STY $D6
|
||||
{ 0x20, 0x00, 0xF0, 0x84, 0xD6 } // JSR $F000; $84, $D6
|
||||
};
|
||||
for(uInt32 i = 0; i < 4; ++i)
|
||||
if(searchForBytes(image.get(), size, signature[i], 5, 1))
|
||||
|
|
Loading…
Reference in New Issue