Added option to disable graphics decoding in client code path

This commit is contained in:
akallabeth
2021-09-17 08:59:10 +02:00
committed by akallabeth
parent ab0f3bb4ff
commit 1ca7e1f7a0
19 changed files with 352 additions and 178 deletions

View File

@@ -270,14 +270,17 @@ void bitmap_cache_register_callbacks(rdpUpdate* update)
cache = update->context->cache;
WINPR_ASSERT(cache);
cache->bitmap->MemBlt = update->primary->MemBlt;
cache->bitmap->Mem3Blt = update->primary->Mem3Blt;
update->primary->MemBlt = update_gdi_memblt;
update->primary->Mem3Blt = update_gdi_mem3blt;
update->secondary->CacheBitmap = update_gdi_cache_bitmap;
update->secondary->CacheBitmapV2 = update_gdi_cache_bitmap_v2;
update->secondary->CacheBitmapV3 = update_gdi_cache_bitmap_v3;
update->BitmapUpdate = gdi_bitmap_update;
if (!freerdp_settings_get_bool(update->context->settings, FreeRDP_DeactivateClientDecoding))
{
cache->bitmap->MemBlt = update->primary->MemBlt;
cache->bitmap->Mem3Blt = update->primary->Mem3Blt;
update->primary->MemBlt = update_gdi_memblt;
update->primary->Mem3Blt = update_gdi_mem3blt;
update->secondary->CacheBitmap = update_gdi_cache_bitmap;
update->secondary->CacheBitmapV2 = update_gdi_cache_bitmap_v2;
update->secondary->CacheBitmapV3 = update_gdi_cache_bitmap_v3;
update->BitmapUpdate = gdi_bitmap_update;
}
}
rdpBitmapCache* bitmap_cache_new(rdpContext* context)