summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorWilliam Roberts <wroberts@sta.samsung.com>2011-07-22 08:49:51 -0400
committerChristian Beier <dontmind@freeshell.org>2011-07-23 18:31:13 +0200
commitea5bed50057260d53be10041ac96c672fa1d65ff (patch)
treeebb537a30d0be70226b67c3f4424ffd73ba79a83 /examples
parent5be89ead0193f17238a058e6b02e46c83b35ca26 (diff)
downloadlibtdevnc-ea5bed50057260d53be10041ac96c672fa1d65ff.tar.gz
libtdevnc-ea5bed50057260d53be10041ac96c672fa1d65ff.zip
Corrected resolution issue, but screen is getting reported as wrong size
Diffstat (limited to 'examples')
-rw-r--r--examples/android/jni/fbvncserver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/android/jni/fbvncserver.c b/examples/android/jni/fbvncserver.c
index 694209c..441ea62 100644
--- a/examples/android/jni/fbvncserver.c
+++ b/examples/android/jni/fbvncserver.c
@@ -189,7 +189,7 @@ static void init_fb_server(int argc, char **argv)
assert(fbbuf != NULL);
/* TODO: This assumes scrinfo.bits_per_pixel is 16. */
- vncscr = rfbGetScreen(&argc, argv, scrinfo.xres, scrinfo.yres, 5, 2, 2);
+ vncscr = rfbGetScreen(&argc, argv, scrinfo.xres, scrinfo.yres, 5, 2, (scrinfo.bits_per_pixel / 8));
assert(vncscr != NULL);
vncscr->desktopName = "Android";