summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/android/jni/fbvncserver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/android/jni/fbvncserver.c b/examples/android/jni/fbvncserver.c
index 441ea62..a8c4827 100644
--- a/examples/android/jni/fbvncserver.c
+++ b/examples/android/jni/fbvncserver.c
@@ -180,12 +180,12 @@ static void init_fb_server(int argc, char **argv)
/* Allocate the VNC server buffer to be managed (not manipulated) by
* libvncserver. */
- vncbuf = calloc(scrinfo.xres * scrinfo.yres, scrinfo.bits_per_pixel / 2);
+ vncbuf = calloc(scrinfo.xres * scrinfo.yres, scrinfo.bits_per_pixel / 8);
assert(vncbuf != NULL);
/* Allocate the comparison buffer for detecting drawing updates from frame
* to frame. */
- fbbuf = calloc(scrinfo.xres * scrinfo.yres, scrinfo.bits_per_pixel / 2);
+ fbbuf = calloc(scrinfo.xres * scrinfo.yres, scrinfo.bits_per_pixel / 8);
assert(fbbuf != NULL);
/* TODO: This assumes scrinfo.bits_per_pixel is 16. */