From: Pierre Ossman Date: Fri, 24 Feb 2017 08:23:47 +0000 (+0100) Subject: Get correct text width for overlay X-Git-Tag: v1.7.90~20 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2e7c744426e4dff6c630e973a1464df814f24abe;p=tigervnc.git 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 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