GUACAMOLE-249: Initialize FreeRDP's GDI implementation (default GDI handlers will otherwise fail).
This commit is contained in:
parent
7a7ffc2c19
commit
7904d9c002
@ -61,6 +61,7 @@
|
|||||||
#include <freerdp/client/disp.h>
|
#include <freerdp/client/disp.h>
|
||||||
#include <freerdp/event.h>
|
#include <freerdp/event.h>
|
||||||
#include <freerdp/freerdp.h>
|
#include <freerdp/freerdp.h>
|
||||||
|
#include <freerdp/gdi/gdi.h>
|
||||||
#include <freerdp/rail.h>
|
#include <freerdp/rail.h>
|
||||||
#include <freerdp/version.h>
|
#include <freerdp/version.h>
|
||||||
#include <guacamole/audio.h>
|
#include <guacamole/audio.h>
|
||||||
@ -227,6 +228,10 @@ BOOL rdp_freerdp_pre_connect(freerdp* instance) {
|
|||||||
/* Init FreeRDP cache */
|
/* Init FreeRDP cache */
|
||||||
instance->context->cache = cache_new(instance->settings);
|
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 */
|
/* Set up bitmap handling */
|
||||||
rdpBitmap bitmap = *graphics->Bitmap_Prototype;
|
rdpBitmap bitmap = *graphics->Bitmap_Prototype;
|
||||||
bitmap.size = sizeof(guac_rdp_bitmap);
|
bitmap.size = sizeof(guac_rdp_bitmap);
|
||||||
|
Loading…
Reference in New Issue
Block a user