mirror of https://github.com/xqemu/xqemu.git
ui: use DIV_ROUND_UP
I used the clang-tidy qemu-round check to generate the fix: https://github.com/elmarco/clang-tools-extra Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <rth@twiddle.net>
This commit is contained in:
parent
659c90eed8
commit
935b3332f5
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue