Skip to content

Commit 93d09c3

Browse files
committed
pwm: fix potential time travel issue, hd44102: missing break;
1 parent 48161ce commit 93d09c3

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/devices/video/hd44102.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ void hd44102_device::control_w(u8 data)
188188
m_y = y;
189189
}
190190
}
191+
break;
191192
}
192193
}
193194

src/devices/video/hd44102.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class hd44102_device : public device_t
3131
void write(offs_t offset, u8 data);
3232

3333
const u8 *render();
34-
u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
34+
u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); // optional
3535

3636
protected:
3737
// device-level overrides

src/devices/video/pwm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,11 +274,11 @@ void pwm_display_device::sync()
274274
{
275275
const attotime now = machine().time();
276276
const attotime last = m_sync_time;
277-
m_sync_time = now;
278277

279278
if (last >= now)
280279
return;
281280

281+
m_sync_time = now;
282282
const attotime diff = now - last;
283283
u64 sel = m_rowsel;
284284

0 commit comments

Comments
 (0)