Fix wrong rounding in PreviewWindow
(fixes #3773)
This commit is contained in:
@@ -216,7 +216,7 @@ bool PreviewWindow::on_motion_notify_event (GdkEventMotion* event)
|
|||||||
CursorShape newType = cursor_type;
|
CursorShape newType = cursor_type;
|
||||||
|
|
||||||
if (isMoving) {
|
if (isMoving) {
|
||||||
mainCropWin->remoteMove ((int)((event->x - (double)press_x) / zoom), (int)((event->y - (double)press_y) / zoom));
|
mainCropWin->remoteMove ((event->x - press_x) / zoom, (event->y - press_y) / zoom);
|
||||||
press_x = event->x;
|
press_x = event->x;
|
||||||
press_y = event->y;
|
press_y = event->y;
|
||||||
} else if (inside) {
|
} else if (inside) {
|
||||||
|
@@ -36,7 +36,7 @@ private:
|
|||||||
ImageArea* imageArea;
|
ImageArea* imageArea;
|
||||||
int imgX, imgY, imgW, imgH;
|
int imgX, imgY, imgW, imgH;
|
||||||
double zoom;
|
double zoom;
|
||||||
int press_x, press_y;
|
double press_x, press_y;
|
||||||
bool isMoving;
|
bool isMoving;
|
||||||
bool needsUpdate;
|
bool needsUpdate;
|
||||||
CursorShape cursor_type;
|
CursorShape cursor_type;
|
||||||
|
Reference in New Issue
Block a user