summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorWilliam Roberts <wroberts@sta.samsung.com>2011-07-22 09:15:07 -0400
committerChristian Beier <dontmind@freeshell.org>2011-07-23 18:31:14 +0200
commit8235cf8be7ed3a372bc96df39af039697d486e16 (patch)
tree8470ee9f5931d56df077a0ede8a021bf2b90a750 /examples
parentea5bed50057260d53be10041ac96c672fa1d65ff (diff)
downloadlibtdevnc-8235cf8be7ed3a372bc96df39af039697d486e16.tar.gz
libtdevnc-8235cf8be7ed3a372bc96df39af039697d486e16.zip
Reduced memory footprint by 50%
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. */