From: Marc-André Moreau Date: Wed, 12 Oct 2011 01:15:32 +0000 (-0400) Subject: libfreerdp-gdi: merge fix from ngraziano for offscreen cache handling X-Git-Tag: 1.0-beta1~75 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2121a4a5cce5ecd3e1117d14747523475af768b4;p=platform%2Fupstream%2Ffreerdp.git libfreerdp-gdi: merge fix from ngraziano for offscreen cache handling --- 2121a4a5cce5ecd3e1117d14747523475af768b4 diff --cc client/X11/xf_gdi.c index 5980a76,28d6a91..4ab8416 --- a/client/X11/xf_gdi.c +++ b/client/X11/xf_gdi.c @@@ -616,7 -617,12 +617,12 @@@ void xf_gdi_memblt(rdpUpdate* update, M xfInfo* xfi = GET_XFI(update); xf_set_rop3(xfi, gdi_rop3_code(memblt->bRop)); - bitmap_cache_get(xfi->cache->bitmap, memblt->cacheId, memblt->cacheIndex, (void**) &extra); + - if(memblt->cacheId == 255) - extra = offscreen_get(xfi->cache->offscreen, memblt->cacheIndex); ++ if(memblt->cacheId == 0xFF) ++ extra = offscreen_cache_get(xfi->cache->offscreen, memblt->cacheIndex); + else - bitmap_v2_get(xfi->cache->bitmap_v2, memblt->cacheId, memblt->cacheIndex, (void**) &extra); ++ bitmap_cache_get(xfi->cache->bitmap, memblt->cacheId, memblt->cacheIndex, (void**) &extra); + bitmap = (Pixmap) extra; if (extra == NULL) diff --cc libfreerdp-gdi/gdi.c index 7e0c5c7,8350006..f1fcaa9 --- a/libfreerdp-gdi/gdi.c +++ b/libfreerdp-gdi/gdi.c @@@ -651,7 -651,11 +651,11 @@@ void gdi_memblt(rdpUpdate* update, MEMB GDI_IMAGE* gdi_bmp; GDI* gdi = GET_GDI(update); - bitmap_cache_get(gdi->cache->bitmap, memblt->cacheId, memblt->cacheIndex, (void**) &extra); - if(memblt->cacheId == 255) - extra = offscreen_get(gdi->cache->offscreen, memblt->cacheIndex); ++ if(memblt->cacheId == 0xFF) ++ extra = offscreen_cache_get(gdi->cache->offscreen, memblt->cacheIndex); + else - bitmap_v2_get(gdi->cache->bitmap_v2, memblt->cacheId, memblt->cacheIndex, (void**) &extra); ++ bitmap_cache_get(gdi->cache->bitmap, memblt->cacheId, memblt->cacheIndex, (void**) &extra); + gdi_bmp = (GDI_IMAGE*) extra; if (extra == NULL)