diff options
author | dscho <dscho> | 2005-10-06 19:26:41 +0000 |
---|---|---|
committer | dscho <dscho> | 2005-10-06 19:26:41 +0000 |
commit | 194a76df115db3b6fe62adbccfe4181ed46d2c52 (patch) | |
tree | 1b7e853cbd4c4482173d3b2f675580169dfd56d6 /client_examples/SDLvncviewer.c | |
parent | 11fc700c5db6afc6978211f5735707848b94ae8e (diff) | |
download | libvncserver-194a76df115db3b6fe62adbccfe4181ed46d2c52.zip libvncserver-194a76df115db3b6fe62adbccfe4181ed46d2c52.tar.gz |
add an extension mechanism for LibVNCClient, modify the client data handling
so that more than one data structure can be attached, and add an example
to speak the client part of the back channel.
Diffstat (limited to 'client_examples/SDLvncviewer.c')
-rw-r--r-- | client_examples/SDLvncviewer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client_examples/SDLvncviewer.c b/client_examples/SDLvncviewer.c index 07d3869..8375ea6 100644 --- a/client_examples/SDLvncviewer.c +++ b/client_examples/SDLvncviewer.c @@ -16,7 +16,7 @@ static rfbBool resize(rfbClient* client) { okay=SDL_VideoModeOK(width,height,depth,flags); if(okay) { SDL_Surface* sdl=SDL_SetVideoMode(width,height,depth,flags); - client->clientData=sdl; + rfbClientSetClientData(client, SDL_Init, sdl); client->frameBuffer=sdl->pixels; if(first || depth!=client->format.bitsPerPixel) { first=FALSE; @@ -30,7 +30,7 @@ static rfbBool resize(rfbClient* client) { SetFormatAndEncodings(client); } } else { - SDL_Surface* sdl=client->clientData; + SDL_Surface* sdl=rfbClientGetClientData(client, SDL_Init); rfbClientLog("Could not set resolution %dx%d!\n", client->width,client->height); if(sdl) { @@ -188,7 +188,7 @@ static rfbKeySym SDL_keysym2rfbKeySym(int keysym) { } static void update(rfbClient* cl,int x,int y,int w,int h) { - SDL_UpdateRect(cl->clientData, x, y, w, h); + SDL_UpdateRect(rfbClientGetClientData(cl, SDL_Init), x, y, w, h); } #ifdef __MINGW32__ |