Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
libvncserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
libvncserver
Commits
a824cf44
Commit
a824cf44
authored
Jun 03, 2008
by
dscho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SDLvncviewer: update screen correctly after a resize
Signed-off-by:
Johannes Schindelin
<
johannes.schindelin@gmx.de
>
parent
c9fa8718
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
ChangeLog
ChangeLog
+3
-0
SDLvncviewer.c
client_examples/SDLvncviewer.c
+2
-0
No files found.
ChangeLog
View file @
a824cf44
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>
2008-02-18 Christian Ehrlicher <Ch.Ehrlicher@gmx.de>
* libvncserver/rfbregion.c: please MS Visual C++
* libvncserver/rfbregion.c: please MS Visual C++
...
...
client_examples/SDLvncviewer.c
View file @
a824cf44
...
@@ -17,6 +17,8 @@ static rfbBool resize(rfbClient* client) {
...
@@ -17,6 +17,8 @@ static rfbBool resize(rfbClient* client) {
#endif
#endif
int
width
=
client
->
width
,
height
=
client
->
height
,
int
width
=
client
->
width
,
height
=
client
->
height
,
depth
=
client
->
format
.
bitsPerPixel
;
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
);
rfbBool
okay
=
SDL_VideoModeOK
(
width
,
height
,
depth
,
flags
);
if
(
!
okay
)
if
(
!
okay
)
for
(
depth
=
24
;
!
okay
&&
depth
>
4
;
depth
/=
2
)
for
(
depth
=
24
;
!
okay
&&
depth
>
4
;
depth
/=
2
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment