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 | |
parent | c9fa871830244f0c2c15f3e61e5bb0fec065b1cf (diff) | |
download | libtdevnc-a824cf443df899c8d2178a1bd7581057bd7f60d6.tar.gz libtdevnc-a824cf443df899c8d2178a1bd7581057bd7f60d6.zip |
SDLvncviewer: update screen correctly after a resize
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | client_examples/SDLvncviewer.c | 2 |
2 files changed, 5 insertions, 0 deletions
@@ -1,3 +1,6 @@ +2008-06-03 Johannes E. Schindelin <Johannes.Schindelin@gmx.de> + * client_examples/SDLvncviewer.c: fix update after resize + 2008-02-18 Christian Ehrlicher <Ch.Ehrlicher@gmx.de> * libvncserver/rfbregion.c: please MS Visual C++ 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) |