summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/monitor/monitor_module.h
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2022-11-06 08:09:23 +1100
committer Vas Crabb <vas@vastheman.com>2022-11-06 08:09:23 +1100
commit0fab97a476409dc80fc15219529a860e4eaf2b06 (patch)
treeeff8d577e40fadd3455bdfbb0dfa30070bc8b7ca /src/osd/modules/monitor/monitor_module.h
parent185f734a6cb76e602d0460f3da4109d357f177ae (diff)
Fixed a few issues identified by Coverity:
* cpu/m6805: Removed unnecessary comparison that can't be true from 'HC05 timer handler. * machine/z80scc.cpp: Fixed flag test in logging. * emu/devdelegate.h: Fixed use-after-move in functoid constructor. * util/unzip.cpp: Fixed integer promotion issue in ZIP16 member header handling. * util/xmlfile.cpp: Got rid of custom allocator functions that have alignment issues and no longer provide value. * capcom/alien.cpp: Use machine().rand() for determinism. * ensoniq/esqpanel.cpp: I/O stream eof() returns whether a read stopped short due to EOF, not whether the file pointer is at EOF. * sega/sms.cpp: Fixed a few use-after-move errors. * osd/modules/monitor: Fixed an apparent bug in what appears to be a setter member function.
Diffstat (limited to '')
-rw-r--r--src/osd/modules/monitor/monitor_module.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osd/modules/monitor/monitor_module.h b/src/osd/modules/monitor/monitor_module.h
index 3244e7fd42b..583f47d4b34 100644
--- a/src/osd/modules/monitor/monitor_module.h
+++ b/src/osd/modules/monitor/monitor_module.h
@@ -53,7 +53,7 @@ public:
float aspect() const { return m_aspect; }
float pixel_aspect() const { return m_aspect / (float(m_pos_size.width()) / float(m_pos_size.height())); }
- void update_resolution(const int new_width, const int new_height) const { m_pos_size.resize(new_width, new_height); }
+ void update_resolution(const int new_width, const int new_height) { m_pos_size = m_pos_size.resize(new_width, new_height); }
void set_aspect(const float a) { m_aspect = a; }
bool is_primary() const { return m_is_primary; }