mirror of
https://github.com/stenzek/duckstation.git
synced 2025-07-23 18:40:18 +00:00
GPU: Fix 480i resolution display in OSD
This commit is contained in:
parent
0aa89ec7b0
commit
ad980a7004
@ -66,8 +66,7 @@ static TimingEvent s_command_tick_event(
|
|||||||
"GPU Command Tick", 1, 1, [](void* param, TickCount ticks, TickCount ticks_late) { g_gpu.CommandTickEvent(ticks); },
|
"GPU Command Tick", 1, 1, [](void* param, TickCount ticks, TickCount ticks_late) { g_gpu.CommandTickEvent(ticks); },
|
||||||
nullptr);
|
nullptr);
|
||||||
static TimingEvent s_frame_done_event(
|
static TimingEvent s_frame_done_event(
|
||||||
"Frame Done", 1, 1, [](void* param, TickCount ticks, TickCount ticks_late) { g_gpu.FrameDoneEvent(ticks); },
|
"Frame Done", 1, 1, [](void* param, TickCount ticks, TickCount ticks_late) { g_gpu.FrameDoneEvent(ticks); }, nullptr);
|
||||||
nullptr);
|
|
||||||
|
|
||||||
// #define PSX_GPU_STATS
|
// #define PSX_GPU_STATS
|
||||||
#ifdef PSX_GPU_STATS
|
#ifdef PSX_GPU_STATS
|
||||||
@ -160,8 +159,10 @@ std::tuple<u32, u32> GPU::GetFullDisplayResolution() const
|
|||||||
std::clamp<s32>(m_crtc_state.regs.X1, xmin, xmax),
|
std::clamp<s32>(m_crtc_state.regs.X1, xmin, xmax),
|
||||||
0) /
|
0) /
|
||||||
m_crtc_state.dot_clock_divider);
|
m_crtc_state.dot_clock_divider);
|
||||||
height = static_cast<u32>(std::max<s32>(
|
height =
|
||||||
std::clamp<s32>(m_crtc_state.regs.Y2, ymin, ymax) - std::clamp<s32>(m_crtc_state.regs.Y1, ymin, ymax), 0));
|
static_cast<u32>(std::max<s32>(
|
||||||
|
std::clamp<s32>(m_crtc_state.regs.Y2, ymin, ymax) - std::clamp<s32>(m_crtc_state.regs.Y1, ymin, ymax), 0))
|
||||||
|
<< BoolToUInt8(m_GPUSTAT.vertical_interlace && m_GPUSTAT.vertical_resolution);
|
||||||
}
|
}
|
||||||
|
|
||||||
return std::tie(width, height);
|
return std::tie(width, height);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user