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 Common::Rect DebuggerDialog::getTiaBounds() const
{ {
// The area showing the TIA image (NTSC and PAL supported, up to 260 lines) // The area showing the TIA image (NTSC and PAL supported, up to 274 lines without scaling)
return Common::Rect(0, 0, 320, std::max(260, int(_h * 0.35))); 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 // Use all available space, up to the maximum bounds of the TIA image
_w = std::min(w, 320); _w = std::min(w, 320);
_h = std::min(h, 260); _h = std::min(h, 274);
addFocusWidget(this); addFocusWidget(this);

View File

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