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/CMakeLists.txt | 2 +- src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index dceb15d0d..e0bd1d7d3 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -215,7 +215,7 @@ if (USE_X11) Fl_Native_File_Chooser_GTK.cxx Fl_get_key.cxx ) - + if (OPTION_USE_KDIALOG) set (DRIVER_FILES ${DRIVER_FILES} Fl_Native_File_Chooser_Kdialog.cxx) endif (OPTION_USE_KDIALOG) 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