Commit a824cf44 authored by dscho's avatar dscho

SDLvncviewer: update screen correctly after a resize

Signed-off-by: 's avatarJohannes Schindelin <johannes.schindelin@gmx.de>
parent c9fa8718
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++
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment