From 2e7c744426e4dff6c630e973a1464df814f24abe Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Fri, 24 Feb 2017 09:23:47 +0100 Subject: [PATCH] Get correct text width for overlay Incoming width specifies wrapping width, and we do not want any wrapping. --- vncviewer/DesktopWindow.cxx | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.5