summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordscho <johannes.schindelin@gmx.de>2014-10-14 10:11:33 -0500
committerdscho <johannes.schindelin@gmx.de>2014-10-14 10:11:33 -0500
commitd4c0ebf3c7294598b19b2fe019bd79d5b6e9a67d (patch)
tree651aed9169251669238decb2ae0ef713c06c2fa4
parent7ef0ae905c3c6c1d8079b8cabac4126f7dbf8081 (diff)
parent02d0f73ee8e96871d971d51b4515416b5a9bd489 (diff)
downloadlibtdevnc-d4c0ebf3c7294598b19b2fe019bd79d5b6e9a67d.tar.gz
libtdevnc-d4c0ebf3c7294598b19b2fe019bd79d5b6e9a67d.zip
Merge pull request #43 from maksqwe/fix_rfbSelectBox
Fix selData.buttonWidth calculation
-rw-r--r--libvncserver/selbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvncserver/selbox.c b/libvncserver/selbox.c
index bbc6d52..ab84390 100644
--- a/libvncserver/selbox.c
+++ b/libvncserver/selbox.c
@@ -235,7 +235,7 @@ int rfbSelectBox(rfbScreenInfoPtr rfbScreen,rfbFontDataPtr font,
i = rfbWidthOfString(font,okStr);
j = rfbWidthOfString(font,cancelStr);
- selData.buttonWidth= k = 4*border+(i<j)?j:i;
+ selData.buttonWidth= k = 4*border+(i<j?j:i);
selData.okBX = x1+(x2-x1-2*k)/3;
if(selData.okBX<x1+border) /* too narrow! */
return(-1);