summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/video
diff options
context:
space:
mode:
author Ivan Vangelista <mesgnet@yahoo.it>2016-02-03 23:25:03 +0100
committer Ivan Vangelista <mesgnet@yahoo.it>2016-02-03 23:25:03 +0100
commitd88c7951c3952eb08d53897cdacde619d8c680d6 (patch)
treec0163cbdea6a543a154a2894c4dcbd6e77b6c0f5 /src/devices/video
parent7da8fa7bb887715842e41e1e7e5ee3216b7250f7 (diff)
mc6845.cpp: fixed save state regression found during Tafoid's latest round of tests (i.e. futflash, docastle, usgames, madalien) (nw)
Diffstat (limited to 'src/devices/video')
-rw-r--r--src/devices/video/mc6845.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/devices/video/mc6845.cpp b/src/devices/video/mc6845.cpp
index 57813f574ab..04e7c967869 100644
--- a/src/devices/video/mc6845.cpp
+++ b/src/devices/video/mc6845.cpp
@@ -553,7 +553,8 @@ void mc6845_device::recompute_parameters(bool postload)
m_hsync_off_pos = hsync_off_pos;
m_vsync_on_pos = vsync_on_pos;
m_vsync_off_pos = vsync_off_pos;
- m_line_counter = 0;
+ if (!postload) // set m_line_counter to 0 on normal operation, but not on postload
+ m_line_counter = 0;
}
}