]> Git Repo - qemu.git/blobdiff - ui/vnc-enc-tight.c
usb-storage: Fix share-rw option parsing
[qemu.git] / ui / vnc-enc-tight.c
index 89ab12c0d808e0defda5801b085696274634a1ec..f38aceb4da1915bcb42874e87df00a4095f814ab 100644 (file)
@@ -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);
This page took 0.022906 seconds and 4 git commands to generate.