projects
/
libguac-client-rdp.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7b52eb
)
Only cache within memblt if not already cached.
author
Michael Jumper <zhangmaike@users.sourceforge.net>
Tue, 10 Apr 2012 23:25:05 +0000
(16:25 -0700)
committer
Michael Jumper <zhangmaike@users.sourceforge.net>
Tue, 10 Apr 2012 23:25:05 +0000
(16:25 -0700)
src/rdp_gdi.c
patch
|
blob
|
history
diff --git
a/src/rdp_gdi.c
b/src/rdp_gdi.c
index
a287e10
..
66b3cde
100644
(file)
--- a/
src/rdp_gdi.c
+++ b/
src/rdp_gdi.c
@@
-180,7
+180,8
@@
void guac_rdp_gdi_memblt(rdpContext* context, MEMBLT_ORDER* memblt) {
case 0xCC:
/* If not cached, cache if necessary */
- if (((guac_rdp_bitmap*) bitmap)->used >= 1)
+ if (((guac_rdp_bitmap*) bitmap)->layer == NULL
+ && ((guac_rdp_bitmap*) bitmap)->used >= 1)
guac_rdp_cache_bitmap(context, memblt->bitmap);
/* If not cached, send as PNG */