adjust ystart for NTSC and PAL

adjust TIA sizes in debugger
This commit is contained in:
thrust26 2020-01-25 10:28:16 +01:00
parent 792cbb4ffa
commit 1ade839c0b
3 changed files with 7 additions and 7 deletions

View File

@ -658,8 +658,8 @@ void DebuggerDialog::addRomArea()
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Common::Rect DebuggerDialog::getTiaBounds() const
{
// The area showing the TIA image (NTSC and PAL supported, up to 260 lines)
return Common::Rect(0, 0, 320, std::max(260, int(_h * 0.35)));
// The area showing the TIA image (NTSC and PAL supported, up to 274 lines without scaling)
return Common::Rect(0, 0, 320, std::max(274, int(_h * 0.35)));
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

View File

@ -41,7 +41,7 @@ TiaZoomWidget::TiaZoomWidget(GuiObject* boss, const GUI::Font& font,
// Use all available space, up to the maximum bounds of the TIA image
_w = std::min(w, 320);
_h = std::min(h, 260);
_h = std::min(h, 274);
addFocusWidget(this);

View File

@ -28,12 +28,12 @@ enum Metrics: uInt32 {
vsync = 3,
frameSizeNTSC = 262,
frameSizePAL = 312,
baseHeightNTSC = 228,
baseHeightPAL = 274,
baseHeightNTSC = 228, // 217..239
baseHeightPAL = 274, // 260..288
maxLinesVsync = 50,
initialGarbageFrames = TIAConstants::initialGarbageFrames,
ystartNTSC = 16,
ystartPAL = 19
ystartNTSC = 23,
ystartPAL = 32
};
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -