diff options
| author | MatthiasWM <git@matthiasm.com> | 2025-12-21 20:58:48 +0100 |
|---|---|---|
| committer | MatthiasWM <git@matthiasm.com> | 2025-12-21 20:58:48 +0100 |
| commit | 31760a98aca6daeee846906ef7af20395f641b65 (patch) | |
| tree | 29cba0da841701e9666215690d2e3433fed4bbcc | |
| parent | 453f4311ea4d3e6fdf25f189c5311dceba67db7c (diff) | |
Win32: removed debugger messages
| -rw-r--r-- | src/drivers/WinAPI/Fl_WinAPI_Pen_Driver.cxx | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/drivers/WinAPI/Fl_WinAPI_Pen_Driver.cxx b/src/drivers/WinAPI/Fl_WinAPI_Pen_Driver.cxx index 5bfe74d56..561743c7f 100644 --- a/src/drivers/WinAPI/Fl_WinAPI_Pen_Driver.cxx +++ b/src/drivers/WinAPI/Fl_WinAPI_Pen_Driver.cxx @@ -298,7 +298,6 @@ LRESULT fl_win32_tablet_handler(MSG& msg) { double s = Fl::screen_driver()->scale(0); double ex = info.pointerInfo.ptPixelLocation.x/s; double ey = info.pointerInfo.ptPixelLocation.y/s; - // Go from global coordinates to event window coordinates Fl_Widget *p = eventWindow; while (p) { @@ -308,15 +307,8 @@ LRESULT fl_win32_tablet_handler(MSG& msg) { } p = p->parent(); }; - printf("pos: %d,%d (scale %.2f) to %.2f,%.2f %s\n", - info.pointerInfo.ptPixelLocation.x, - info.pointerInfo.ptPixelLocation.y, - s, - ex, - ey, eventWindow->label()); - - ev.x = ex; //info.pointerInfo.ptPixelLocation.x/s - eventWindow->x(); - ev.y = ey; //info.pointerInfo.ptPixelLocation.y/s - eventWindow->y(); + ev.x = ex; + ev.y = ey; ev.rx = info.pointerInfo.ptPixelLocation.x/s; ev.ry = info.pointerInfo.ptPixelLocation.y/s; if (!is_proximity) { |
