Fixed mac compilation warnings
This commit is contained in:
parent
31708d8b20
commit
1cc06dc3a5
@ -288,7 +288,7 @@ static const CGKeyCode keymap[256] = {
|
||||
0xFF, // 0xfe
|
||||
};
|
||||
|
||||
BOOL mf_input_keyboard_event(rdpInput* input, UINT16 flags, UINT16 code)
|
||||
BOOL mf_input_keyboard_event(rdpInput* input, UINT16 flags, UINT8 code)
|
||||
{
|
||||
CGEventSourceRef source = CGEventSourceCreate(kCGEventSourceStateHIDSystemState);
|
||||
BOOL keyDown = TRUE;
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
#include "mf_interface.h"
|
||||
|
||||
BOOL mf_input_keyboard_event(rdpInput* input, UINT16 flags, UINT16 code);
|
||||
BOOL mf_input_keyboard_event(rdpInput* input, UINT16 flags, UINT8 code);
|
||||
BOOL mf_input_unicode_keyboard_event(rdpInput* input, UINT16 flags, UINT16 code);
|
||||
BOOL mf_input_mouse_event(rdpInput* input, UINT16 flags, UINT16 x, UINT16 y);
|
||||
BOOL mf_input_extended_mouse_event(rdpInput* input, UINT16 flags, UINT16 x, UINT16 y);
|
||||
|
@ -329,7 +329,7 @@ static BOOL mf_peer_synchronize_event(rdpInput* input, UINT32 flags)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void mf_peer_keyboard_event(rdpInput* input, UINT16 flags, UINT8 code)
|
||||
static BOOL mf_peer_keyboard_event(rdpInput* input, UINT16 flags, UINT8 code)
|
||||
{
|
||||
bool state_down = FALSE;
|
||||
|
||||
@ -337,6 +337,7 @@ void mf_peer_keyboard_event(rdpInput* input, UINT16 flags, UINT8 code)
|
||||
{
|
||||
state_down = TRUE;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static BOOL mf_peer_unicode_keyboard_event(rdpInput* input, UINT16 flags, UINT16 code)
|
||||
|
@ -350,7 +350,7 @@ static int freerdp_image_copy_from_retina(BYTE* pDstData, DWORD DstFormat, int n
|
||||
R = pSrcPixel[2] + pSrcPixel[6] + pSrcPixel[nSrcStep + 2] + pSrcPixel[nSrcStep + 6];
|
||||
pSrcPixel += 8;
|
||||
color = FreeRDPGetColor(DstFormat, R >> 2, G >> 2, B >> 2, 0xFF);
|
||||
WriteColor(pDstPixel, DstFormat, color);
|
||||
FreeRDPWriteColor(pDstPixel, DstFormat, color);
|
||||
pDstPixel += dstBytesPerPixel;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user