From 65a2a60215c5581b33dbdc04b4d5580b1c368a97 Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Wed, 16 Mar 2022 16:16:24 +0000 Subject: Change VNC_WaitOnConnection return Type --- Makefile | 2 +- SDL2_vnc.c | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index a8f851f..dcd45c9 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -CFLAGS += -Wpedantic -Wall +CFLAGS += -Wpedantic -Wall -fPIC CFLAGS += $(shell sdl2-config --cflags) LDLIBS += $(shell sdl2-config --libs) diff --git a/SDL2_vnc.c b/SDL2_vnc.c index 455bb3f..b4a4d81 100644 --- a/SDL2_vnc.c +++ b/SDL2_vnc.c @@ -673,8 +673,8 @@ VNC_Result VNC_InitConnection(VNC_Connection *vnc, char *host, Uint16 port, COPY_RECT, RAW, PSEUDO_DESKTOP_SIZE, - PSEUDO_CONTINUOUS_UPDATES, - PSEUDO_CURSOR + PSEUDO_CONTINUOUS_UPDATES + // PSEUDO_CURSOR }; VNC_SetEncodings(vnc, encodings, (sizeof (encodings) / sizeof (VNC_RectangleEncodingMethod))); @@ -687,9 +687,8 @@ VNC_Result VNC_InitConnection(VNC_Connection *vnc, char *host, Uint16 port, return 0; } -int VNC_WaitOnConnection(VNC_Connection *vnc) { +void VNC_WaitOnConnection(VNC_Connection *vnc) { SDL_WaitThread(vnc->thread, NULL); - return 0; } Uint32 VNC_TranslateKey(SDL_KeyCode key, SDL_bool shift) { -- cgit v1.2.1