Skip to content

Commit

Permalink
GPU: Fix incorrect PAL overscan range
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Feb 3, 2025
1 parent 51bef1b commit 4ad2d0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/core/gpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -873,9 +873,9 @@ void GPU::UpdateCRTCDisplayParameters()
static_cast<s32>(PAL_OVERSCAN_HORIZONTAL_ACTIVE_END) + g_settings.display_active_end_offset));
cs.vertical_visible_start = static_cast<u16>(std::max<s32>(
0, static_cast<s32>(PAL_OVERSCAN_VERTICAL_ACTIVE_START) + g_settings.display_line_start_offset));
cs.vertical_visible_end = static_cast<u16>(
std::max<s32>(cs.vertical_visible_start,
static_cast<s32>(NTSC_OVERSCAN_VERTICAL_ACTIVE_END) + g_settings.display_line_end_offset));
cs.vertical_visible_end =
static_cast<u16>(std::max<s32>(cs.vertical_visible_start, static_cast<s32>(PAL_OVERSCAN_VERTICAL_ACTIVE_END) +
g_settings.display_line_end_offset));
break;

case DisplayCropMode::Borders:
Expand Down
2 changes: 1 addition & 1 deletion src/duckstation-qt/graphicssettingswidget.ui
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
<item>
<widget class="QTabWidget" name="tabs">
<property name="currentIndex">
<number>1</number>
<number>0</number>
</property>
<property name="documentMode">
<bool>true</bool>
Expand Down

0 comments on commit 4ad2d0a

Please sign in to comment.