Update wf_update.c

+ TAG definition.
+ Required arguments to rfx_context_reset.
+ Replaced RDP_PIXEL_FORMAT_BGRA32 with PIXEL_FORMAT_BGRA32
This commit is contained in:
Abhineet-Ayan-Verma 2017-02-20 18:20:23 +05:30 committed by GitHub
parent 3115c1e28d
commit a66b0b3246

View File

@ -35,6 +35,8 @@
#include "wf_update.h" #include "wf_update.h"
#define TAG SERVER_TAG("windows")
DWORD WINAPI wf_update_thread(LPVOID lpParam) DWORD WINAPI wf_update_thread(LPVOID lpParam)
{ {
int index; int index;
@ -179,7 +181,7 @@ void wf_update_encoder_reset(wfInfo* wfi)
if (wfi->rfx_context) if (wfi->rfx_context)
{ {
rfx_context_reset(wfi->rfx_context); rfx_context_reset(wfi->rfx_context, wfi->servscreen_width, wfi->servscreen_height);
} }
else else
{ {
@ -187,7 +189,7 @@ void wf_update_encoder_reset(wfInfo* wfi)
wfi->rfx_context->mode = RLGR3; wfi->rfx_context->mode = RLGR3;
wfi->rfx_context->width = wfi->servscreen_width; wfi->rfx_context->width = wfi->servscreen_width;
wfi->rfx_context->height = wfi->servscreen_height; wfi->rfx_context->height = wfi->servscreen_height;
rfx_context_set_pixel_format(wfi->rfx_context, RDP_PIXEL_FORMAT_BGRA32); rfx_context_set_pixel_format(wfi->rfx_context, PIXEL_FORMAT_BGRA32);
wfi->s = Stream_New(NULL, 0xFFFF); wfi->s = Stream_New(NULL, 0xFFFF);
} }