Browse Source

SDLvncviewer: update screen correctly after a resize

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
pull/1/head
dscho 14 years ago
parent
commit
a824cf443d
  1. 3
      ChangeLog
  2. 2
      client_examples/SDLvncviewer.c

3
ChangeLog

@ -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++

2
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)

Loading…
Cancel
Save