forked from Green-Sky/tomato
cropping ui partly done (upper left cropper works)
This commit is contained in:
@@ -22,14 +22,16 @@ struct SendImagePopup {
|
||||
ImageLoaderI::ImageResult original_image;
|
||||
|
||||
struct Rect {
|
||||
uint32_t x {0};
|
||||
uint32_t y {0};
|
||||
int32_t x {0};
|
||||
int32_t y {0};
|
||||
|
||||
uint32_t w {0};
|
||||
uint32_t h {0};
|
||||
int32_t w {0};
|
||||
int32_t h {0};
|
||||
};
|
||||
Rect crop_rect;
|
||||
|
||||
bool cropping {false};
|
||||
|
||||
// texture to render (orig img)
|
||||
TextureEntry preview_image;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user