cropwindow: use a stateful custom crop ratio to avoid imprecision due to intermediate rounding

See the comments by @heckflosse in #1489
This commit is contained in:
Alberto Griggio
2017-04-13 21:41:03 +02:00
parent 594b78118b
commit 68e7c5ce23
2 changed files with 17 additions and 11 deletions

View File

@@ -97,6 +97,8 @@ class CropWindow : public LWButtonListener, public CropDisplayHandler, public Ed
CropWindow* observedCropWin; // Pointer to the currently active detail CropWindow
float crop_custom_ratio;
bool onArea (CursorArea a, int x, int y);
void updateCursor (int x, int y);
void drawDecoration (Cairo::RefPtr<Cairo::Context> cr);