diff options
author | dscho <dscho> | 2008-06-03 21:47:15 +0000 |
---|---|---|
committer | dscho <dscho> | 2008-06-03 21:47:15 +0000 |
commit | a824cf443df899c8d2178a1bd7581057bd7f60d6 (patch) | |
tree | 90f8a657fdd79efbf19bf2b21ee33da1c8854d75 /client_examples/SDLvncviewer.c | |
parent | c9fa871830244f0c2c15f3e61e5bb0fec065b1cf (diff) | |
download | libvncserver-a824cf443df899c8d2178a1bd7581057bd7f60d6.zip libvncserver-a824cf443df899c8d2178a1bd7581057bd7f60d6.tar.gz |
SDLvncviewer: update screen correctly after a resize
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Diffstat (limited to 'client_examples/SDLvncviewer.c')
-rw-r--r-- | client_examples/SDLvncviewer.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) |