aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2017-02-24 09:23:47 +0100
committerPierre Ossman <ossman@cendio.se>2017-02-24 09:23:47 +0100
commit2e7c744426e4dff6c630e973a1464df814f24abe (patch)
treea23a90b73a53ba689b20e5026254de8649525674 /vncviewer
parent28055e28973785d867595d81e40c175843186751 (diff)
downloadtigervnc-2e7c744426e4dff6c630e973a1464df814f24abe.tar.gz
tigervnc-2e7c744426e4dff6c630e973a1464df814f24abe.zip
Get correct text width for overlay
Incoming width specifies wrapping width, and we do not want any wrapping.
Diffstat (limited to 'vncviewer')
-rw-r--r--vncviewer/DesktopWindow.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/vncviewer/DesktopWindow.cxx b/vncviewer/DesktopWindow.cxx
index acb0a729..8fdd59b7 100644
--- a/vncviewer/DesktopWindow.cxx
+++ b/vncviewer/DesktopWindow.cxx
@@ -484,6 +484,7 @@ void DesktopWindow::setOverlay(const char* text, ...)
#endif
fl_font(FL_HELVETICA, FL_NORMAL_SIZE * 2);
+ w = 0;
fl_measure(textbuf, w, h);
// Margins