Center new spot inside preview area, fixes #5220
When adding/duplicating spot, new spot is now centered according to the preview area. Moreover ellipse/rectangle size takes into account the preview area size (but it is saturated at maximum at 250 for a creation, at duplicated spot size for a duplication). Center circle radius is unchanged
This commit is contained in:
@@ -143,6 +143,8 @@ public:
|
||||
void subscribe(EditSubscriber *subscriber) override;
|
||||
void unsubscribe() override;
|
||||
void getImageSize (int &w, int&h) override;
|
||||
void getPreviewCenterPos(int &x, int &y) override;
|
||||
void getPreviewSize(int &w, int &h) override;
|
||||
|
||||
// CropWindowListener interface
|
||||
void cropPositionChanged (CropWindow* cw) override;
|
||||
|
Reference in New Issue
Block a user