summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/video/topcat.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2018-05-31 12:41:53 +1000
committer Vas Crabb <vas@vastheman.com>2018-05-31 12:41:53 +1000
commitb8b20ffd5adde588a7f05e35872d11e54471ef03 (patch)
treec0b6d01acf2ebab1d73713811b1327205a833313 /src/devices/video/topcat.cpp
parent221b16bcbadd642874b18546ea49aaee71ac6990 (diff)
hp_dio: clean up (nw)
Diffstat (limited to 'src/devices/video/topcat.cpp')
-rw-r--r--src/devices/video/topcat.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/video/topcat.cpp b/src/devices/video/topcat.cpp
index cad6645335a..d4f4188623e 100644
--- a/src/devices/video/topcat.cpp
+++ b/src/devices/video/topcat.cpp
@@ -104,8 +104,8 @@ void topcat_device::update_cursor(int x, int y, uint8_t ctrl, uint8_t width)
modify_vram(m_cursor_x_pos+i, m_cursor_y_pos-1, false);
modify_vram(m_cursor_x_pos+i, m_cursor_y_pos-2, false);
}
- m_cursor_x_pos = std::min(x, m_fb_width - m_cursor_width);
- m_cursor_y_pos = std::max(std::min(y, m_fb_height), 2);
+ m_cursor_x_pos = (std::min)(x, m_fb_width - m_cursor_width);
+ m_cursor_y_pos = (std::max)((std::min)(y, m_fb_height), 2);
m_cursor_ctrl = ctrl;
m_cursor_width = width;
}