diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2016-04-12 10:35:15 +0000 |
|---|---|---|
| committer | Krzysztof KosiĆski <tweenk.pl@gmail.com> | 2016-04-12 10:35:15 +0000 |
| commit | a907096a990015010ec1171cd8997d33951f28a2 (patch) | |
| tree | bcfab1e121f3ab398e6df384a205737500af0351 /src/ui/tool/event-utils.cpp | |
| parent | Add option for larger icons (useful for 4K display). (diff) | |
| download | inkscape-a907096a990015010ec1171cd8997d33951f28a2.tar.gz inkscape-a907096a990015010ec1171cd8997d33951f28a2.zip | |
Hackfest 2016: un-obfuscate the SPCanvas widget.
(bzr r14790)
Diffstat (limited to 'src/ui/tool/event-utils.cpp')
| -rw-r--r-- | src/ui/tool/event-utils.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/tool/event-utils.cpp b/src/ui/tool/event-utils.cpp index 079275d63..6b8d5f0dc 100644 --- a/src/ui/tool/event-utils.cpp +++ b/src/ui/tool/event-utils.cpp @@ -60,8 +60,8 @@ unsigned combine_motion_events(SPCanvas *canvas, GdkEventMotion &event, gint mas } GdkEvent *event_next; gint i = 0; - event.x -= canvas->x0; - event.y -= canvas->y0; + event.x -= canvas->_x0; + event.y -= canvas->_y0; event_next = gdk_event_get(); // while the next event is also a motion notify @@ -92,8 +92,8 @@ unsigned combine_motion_events(SPCanvas *canvas, GdkEventMotion &event, gint mas if (event_next) { gdk_event_put(event_next); } - event.x += canvas->x0; - event.y += canvas->y0; + event.x += canvas->_x0; + event.y += canvas->_y0; return i; } |
