Merge pull request #144 from ngraziano/ad2b9b23

Offscreen fix
This commit is contained in:
Marc-André Moreau 2011-10-13 17:04:03 -07:00
commit 3ea8b69dcb
2 changed files with 5 additions and 2 deletions

View File

@ -38,7 +38,7 @@ void update_gdi_memblt(rdpUpdate* update, MEMBLT_ORDER* memblt)
rdpBitmap* bitmap;
rdpCache* cache = (rdpCache*) update->cache;
if (memblt->cacheIndex == 0xFF)
if (memblt->cacheId == 0xFF)
bitmap = offscreen_cache_get(cache->offscreen, memblt->cacheIndex);
else
bitmap = bitmap_cache_get(cache->bitmap, memblt->cacheId, memblt->cacheIndex);
@ -52,7 +52,7 @@ void update_gdi_mem3blt(rdpUpdate* update, MEM3BLT_ORDER* mem3blt)
rdpBitmap* bitmap;
rdpCache* cache = (rdpCache*) update->cache;
if (mem3blt->cacheIndex == 0xFF)
if (mem3blt->cacheId == 0xFF)
bitmap = offscreen_cache_get(cache->offscreen, mem3blt->cacheIndex);
else
bitmap = bitmap_cache_get(cache->bitmap, mem3blt->cacheId, mem3blt->cacheIndex);

View File

@ -32,6 +32,9 @@ void update_gdi_create_offscreen_bitmap(rdpUpdate* update, CREATE_OFFSCREEN_BITM
IFCALL(cache->offscreen->OffscreenBitmapSize, update, &size);
bitmap = (rdpBitmap*) xzalloc(size);
bitmap->width = create_offscreen_bitmap->cx;
bitmap->height = create_offscreen_bitmap->cy;
IFCALL(cache->offscreen->OffscreenBitmapNew, update, bitmap);
prevBitmap = offscreen_cache_get(cache->offscreen, create_offscreen_bitmap->id);