diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2026-01-04 16:45:11 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2026-01-04 16:45:11 +0100 |
| commit | 46e681561241d0a123dfc08c234745c40c4a262a (patch) | |
| tree | 96e7f272127d5ba050222832f0fb5cc950c2f3a3 /src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx | |
| parent | 0e570fb6729ff6b97249256c2c9d5f3aa58c7bb4 (diff) | |
Windows: improve moving window across screens having distinct scale factors.
Diffstat (limited to 'src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx')
| -rw-r--r-- | src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx b/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx index b2735b711..4b27753bf 100644 --- a/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx +++ b/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx @@ -50,7 +50,6 @@ Fl_WinAPI_Window_Driver::Fl_WinAPI_Window_Driver(Fl_Window *win) Fl_WinAPI_Window_Driver::~Fl_WinAPI_Window_Driver() { - Fl::remove_timeout(resize_after_screen_change, pWindow); if (shape_data_) { delete shape_data_->effective_bitmap_; delete shape_data_; @@ -716,17 +715,6 @@ int Fl_WinAPI_Window_Driver::scroll(int src_x, int src_y, int src_w, int src_h, return 0; } -Fl_WinAPI_Window_Driver::type_for_resize_window_between_screens Fl_WinAPI_Window_Driver::data_for_resize_window_between_screens_ = {0, false}; - -void Fl_WinAPI_Window_Driver::resize_after_screen_change(void *data) { - Fl_Window *win = (Fl_Window*)data; - RECT r; - GetClientRect(fl_xid(win), &r); - float old_f = float(r.right)/win->w(); - int ns = data_for_resize_window_between_screens_.screen; - Fl_Window_Driver::driver(win)->resize_after_scale_change(ns, old_f, Fl::screen_driver()->scale(ns)); - data_for_resize_window_between_screens_.busy = false; -} const Fl_Image* Fl_WinAPI_Window_Driver::shape() { return shape_data_ ? shape_data_->shape_ : NULL; |
