Misc fixes for Windows clients
This commit is contained in:
parent
4c099866e9
commit
0c24ade668
@ -567,7 +567,7 @@ LRESULT CALLBACK wf_event_proc(HWND hWnd, UINT Msg, WPARAM wParam,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case WM_SETCURSOR:
|
case WM_SETCURSOR:
|
||||||
if (LOWORD(lParam) == HTCLIENT)
|
if (wfc && LOWORD(lParam) == HTCLIENT)
|
||||||
SetCursor(wfc->hDefaultCursor);
|
SetCursor(wfc->hDefaultCursor);
|
||||||
else
|
else
|
||||||
DefWindowProc(hWnd, Msg, wParam, lParam);
|
DefWindowProc(hWnd, Msg, wParam, lParam);
|
||||||
|
@ -614,9 +614,14 @@ BOOL planar_decompress(BITMAP_PLANAR_CONTEXT* planar,
|
|||||||
}
|
}
|
||||||
else /* YCoCg */
|
else /* YCoCg */
|
||||||
{
|
{
|
||||||
|
UINT32 TempFormat;
|
||||||
BYTE* pTempData = planar->pTempData;
|
BYTE* pTempData = planar->pTempData;
|
||||||
UINT32 nTempStep = planar->nTempStep;
|
UINT32 nTempStep = planar->nTempStep;
|
||||||
UINT32 TempFormat = PIXEL_FORMAT_BGRA32;
|
|
||||||
|
if (alpha)
|
||||||
|
TempFormat = PIXEL_FORMAT_BGRA32;
|
||||||
|
else
|
||||||
|
TempFormat = PIXEL_FORMAT_BGRX32;
|
||||||
|
|
||||||
if (!pTempData)
|
if (!pTempData)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
Loading…
Reference in New Issue
Block a user