GUACAMOLE-249: Initialize FreeRDP's GDI implementation (default GDI handlers will otherwise fail).

This commit is contained in:
Michael Jumper 2019-09-29 15:37:09 -07:00
parent 7a7ffc2c19
commit 7904d9c002

View File

@ -61,6 +61,7 @@
#include <freerdp/client/disp.h>
#include <freerdp/event.h>
#include <freerdp/freerdp.h>
#include <freerdp/gdi/gdi.h>
#include <freerdp/rail.h>
#include <freerdp/version.h>
#include <guacamole/audio.h>
@ -227,6 +228,10 @@ BOOL rdp_freerdp_pre_connect(freerdp* instance) {
/* Init FreeRDP cache */
instance->context->cache = cache_new(instance->settings);
/* Init FreeRDP internal GDI implementation */
if (!gdi_init(instance, PIXEL_FORMAT_XRGB32))
return FALSE;
/* Set up bitmap handling */
rdpBitmap bitmap = *graphics->Bitmap_Prototype;
bitmap.size = sizeof(guac_rdp_bitmap);