diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-12-14 23:55:21 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-12-14 23:55:21 +0100 |
| commit | f57b074378d69d19eb5a70e6335054bada06919a (patch) | |
| tree | 85c31d6057e78b8be874c5f476eaf9f9552a171d /src | |
| parent | f76e579ffec32aaf1095d37aaf4a54780fd20b6c (diff) | |
Fix trailing whitespace and a MSVC compiler warning
No code changes
Diffstat (limited to 'src')
| -rw-r--r-- | src/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
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. |
