From f57b074378d69d19eb5a70e6335054bada06919a Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Tue, 14 Dec 2021 23:55:21 +0100 Subject: Fix trailing whitespace and a MSVC compiler warning No code changes --- src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/drivers') diff --git a/src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx b/src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx index 07985d3d9..cc947399e 100644 --- a/src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx +++ b/src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx @@ -271,7 +271,7 @@ void Fl_GDI_Graphics_Driver::set_spot(int font, int size, int X, int Y, int W, i COMPOSITIONFORM cfs; float s = scale(); cfs.dwStyle = CFS_POINT; - cfs.ptCurrentPos.x = X * s; + cfs.ptCurrentPos.x = int(X * s); cfs.ptCurrentPos.y = int(Y * s) - int(tw->labelsize() * s); // Attempt to have temporary text entered by input method use scaled font. // Does good, but still not always effective. -- cgit v1.2.3