aboutsummaryrefslogtreecommitdiff
path: root/ui/cursor.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui/cursor.c')
-rw-r--r--ui/cursor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/cursor.c b/ui/cursor.c
index 5155b392e8..2e2fe13fa6 100644
--- a/ui/cursor.c
+++ b/ui/cursor.c
@@ -118,7 +118,7 @@ void cursor_put(QEMUCursor *c)
int cursor_get_mono_bpl(QEMUCursor *c)
{
- return (c->width + 7) / 8;
+ return DIV_ROUND_UP(c->width, 8);
}
void cursor_set_mono(QEMUCursor *c,