diff options
author | hap <happppp@users.noreply.github.com> | 2021-04-24 18:59:33 +0200 |
---|---|---|
committer | hap <happppp@users.noreply.github.com> | 2021-04-24 18:59:33 +0200 |
commit | 3b4cf940ce804eda5285211f2892632fc3c53ffd (patch) | |
tree | 9be20bf96418826f0a8f9526c0a2d65e2e6a0fc8 | |
parent | 272003ce8f887c743c5640d007094a736ab70a0b (diff) |
pwm.h: missed one sync()
-rw-r--r-- | src/devices/video/pwm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/video/pwm.h b/src/devices/video/pwm.h index a9ef2d92d7a..2b5e6e47b07 100644 --- a/src/devices/video/pwm.h +++ b/src/devices/video/pwm.h @@ -41,7 +41,7 @@ public: // directly handle individual element (does not affect m_rowsel), y = row num, x = row bit int read_element(u8 y, u8 x) { return BIT(m_rowdata[y], x); } - void write_element(u8 y, u8 x, int state) { m_rowdata[y] = (m_rowdata[y] & ~(u64(1) << x)) | (u64(state ? 1 : 0) << x); } + void write_element(u8 y, u8 x, int state) { sync(); m_rowdata[y] = (m_rowdata[y] & ~(u64(1) << x)) | (u64(state ? 1 : 0) << x); } // directly handle row data u64 read_row(offs_t offset) { return m_rowdata[offset]; } |