summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--client_examples/SDLvncviewer.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 43637e2..c0350bc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2008-06-03 Johannes E. Schindelin <[email protected]>
+ * client_examples/SDLvncviewer.c: fix update after resize
+
2008-02-18 Christian Ehrlicher <[email protected]>
* 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)