Skip to content

Commit 4c7a7bb

Browse files
committed
n64: fix screen refresh rate regression [AJR]
1 parent 2d9dce5 commit 4c7a7bb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/mame/nintendo/n64_m.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@ void n64_periphs::vi_recalculate_resolution()
10191019

10201020
rectangle visarea = screen().visible_area();
10211021
// DACRATE is the quarter pixel clock and period will be for a field, not a frame
1022-
attotime period = attotime::from_ticks((vi_hsync & 0xfff) * (vi_vsync & 0xfff), DACRATE_NTSC / 2);
1022+
attotime period = attotime::from_ticks((vi_hsync & 0xfff) * (vi_vsync & 0xfff), DACRATE_NTSC * 2);
10231023

10241024
if (width <= 0 || height <= 0 || (vi_control & 3) == 0)
10251025
{
@@ -1043,7 +1043,7 @@ void n64_periphs::vi_recalculate_resolution()
10431043

10441044
visarea.max_x = width - 1;
10451045
visarea.max_y = height - 1;
1046-
screen().configure((vi_hsync & 0x00000fff)>>2, (vi_vsync & 0x00000fff), visarea, period);
1046+
screen().configure((vi_hsync & 0x00000fff) >> 2, (vi_vsync & 0x00000fff), visarea, period);
10471047
}
10481048

10491049
uint32_t n64_periphs::vi_reg_r(offs_t offset, uint32_t mem_mask)

0 commit comments

Comments
 (0)