From: Eric Brown Date: Fri, 2 Mar 2018 18:42:04 +0000 (-0600) Subject: Misc fixes for Windows clients X-Git-Tag: 2.0.0-rc2~35^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0c24ade66862ea30007fd563f60ca95fb404fa49;p=platform%2Fupstream%2Ffreerdp.git Misc fixes for Windows clients --- diff --git a/client/Windows/wf_event.c b/client/Windows/wf_event.c index 288a60e..fbb214f 100644 --- a/client/Windows/wf_event.c +++ b/client/Windows/wf_event.c @@ -567,7 +567,7 @@ LRESULT CALLBACK wf_event_proc(HWND hWnd, UINT Msg, WPARAM wParam, break; case WM_SETCURSOR: - if (LOWORD(lParam) == HTCLIENT) + if (wfc && LOWORD(lParam) == HTCLIENT) SetCursor(wfc->hDefaultCursor); else DefWindowProc(hWnd, Msg, wParam, lParam); diff --git a/libfreerdp/codec/planar.c b/libfreerdp/codec/planar.c index e05b21a..deb2763 100644 --- a/libfreerdp/codec/planar.c +++ b/libfreerdp/codec/planar.c @@ -614,9 +614,14 @@ BOOL planar_decompress(BITMAP_PLANAR_CONTEXT* planar, } else /* YCoCg */ { + UINT32 TempFormat; BYTE* pTempData = planar->pTempData; UINT32 nTempStep = planar->nTempStep; - UINT32 TempFormat = PIXEL_FORMAT_BGRA32; + + if (alpha) + TempFormat = PIXEL_FORMAT_BGRA32; + else + TempFormat = PIXEL_FORMAT_BGRX32; if (!pTempData) return FALSE;