Merge pull request #3786 from Abhineet-Ayan-Verma/patch-3

Undeclared identifiers fixes in wf_update.c
This commit is contained in:
akallabeth 2017-02-20 15:20:17 +01:00 committed by GitHub
commit 9444de2d3d

View File

@ -35,6 +35,8 @@
#include "wf_update.h"
#define TAG SERVER_TAG("windows")
DWORD WINAPI wf_update_thread(LPVOID lpParam)
{
int index;
@ -179,7 +181,7 @@ void wf_update_encoder_reset(wfInfo* wfi)
if (wfi->rfx_context)
{
rfx_context_reset(wfi->rfx_context);
rfx_context_reset(wfi->rfx_context, wfi->servscreen_width, wfi->servscreen_height);
}
else
{
@ -187,7 +189,7 @@ void wf_update_encoder_reset(wfInfo* wfi)
wfi->rfx_context->mode = RLGR3;
wfi->rfx_context->width = wfi->servscreen_width;
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);
}