mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
vnc: 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: Richard Henderson <rth@twiddle.net>
This commit is contained in:
parent
78ee96de64
commit
659c90eed8
2 changed files with 2 additions and 2 deletions
|
@ -979,7 +979,7 @@ static int send_mono_rect(VncState *vs, int x, int y,
|
|||
}
|
||||
#endif
|
||||
|
||||
bytes = ((w + 7) / 8) * h;
|
||||
bytes = (DIV_ROUND_UP(w, 8)) * h;
|
||||
|
||||
vnc_write_u8(vs, (stream | VNC_TIGHT_EXPLICIT_FILTER) << 4);
|
||||
vnc_write_u8(vs, VNC_TIGHT_FILTER_PALETTE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue