Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
libvncserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
libvncserver
Commits
8235cf8b
Commit
8235cf8b
authored
Jul 22, 2011
by
William Roberts
Committed by
Christian Beier
Jul 23, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduced memory footprint by 50%
parent
ea5bed50
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
fbvncserver.c
examples/android/jni/fbvncserver.c
+2
-2
No files found.
examples/android/jni/fbvncserver.c
View file @
8235cf8b
...
@@ -180,12 +180,12 @@ static void init_fb_server(int argc, char **argv)
...
@@ -180,12 +180,12 @@ static void init_fb_server(int argc, char **argv)
/* Allocate the VNC server buffer to be managed (not manipulated) by
/* Allocate the VNC server buffer to be managed (not manipulated) by
* libvncserver. */
* 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
);
assert
(
vncbuf
!=
NULL
);
/* Allocate the comparison buffer for detecting drawing updates from frame
/* Allocate the comparison buffer for detecting drawing updates from frame
* to 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
);
assert
(
fbbuf
!=
NULL
);
/* TODO: This assumes scrinfo.bits_per_pixel is 16. */
/* TODO: This assumes scrinfo.bits_per_pixel is 16. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment