From a824cf443df899c8d2178a1bd7581057bd7f60d6 Mon Sep 17 00:00:00 2001 From: dscho Date: Tue, 3 Jun 2008 21:47:15 +0000 Subject: SDLvncviewer: update screen correctly after a resize Signed-off-by: Johannes Schindelin --- client_examples/SDLvncviewer.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'client_examples') diff --git a/client_examples/SDLvncviewer.c b/client_examples/SDLvncviewer.c index e73edb1..d01c97d 100644 --- a/client_examples/SDLvncviewer.c +++ b/client_examples/SDLvncviewer.c @@ -17,6 +17,8 @@ static rfbBool resize(rfbClient* client) { #endif int width=client->width,height=client->height, depth=client->format.bitsPerPixel; + client->updateRect.x = client->updateRect.y = 0; + client->updateRect.w = width; client->updateRect.h = height; rfbBool okay=SDL_VideoModeOK(width,height,depth,flags); if(!okay) for(depth=24;!okay && depth>4;depth/=2) -- cgit v1.1