From 8235cf8be7ed3a372bc96df39af039697d486e16 Mon Sep 17 00:00:00 2001 From: William Roberts Date: Fri, 22 Jul 2011 09:15:07 -0400 Subject: Reduced memory footprint by 50% --- examples/android/jni/fbvncserver.c | 4 ++-- 1 file 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. */ -- cgit v1.1