commit | 2e7c744426e4dff6c630e973a1464df814f24abe | [log] [tgz] |
---|---|---|
author | Pierre Ossman <ossman@cendio.se> | Fri Feb 24 09:23:47 2017 +0100 |
committer | Pierre Ossman <ossman@cendio.se> | Fri Feb 24 09:23:47 2017 +0100 |
tree | a23a90b73a53ba689b20e5026254de8649525674 | |
parent | 28055e28973785d867595d81e40c175843186751 [diff] [blame] |
Get correct text width for overlay Incoming width specifies wrapping width, and we do not want any wrapping.
diff --git a/vncviewer/DesktopWindow.cxx b/vncviewer/DesktopWindow.cxx index acb0a72..8fdd59b 100644 --- a/vncviewer/DesktopWindow.cxx +++ b/vncviewer/DesktopWindow.cxx
@@ -484,6 +484,7 @@ #endif fl_font(FL_HELVETICA, FL_NORMAL_SIZE * 2); + w = 0; fl_measure(textbuf, w, h); // Margins