cropping ui partly done (upper left cropper works)

This commit is contained in:
2023-10-05 14:23:39 +02:00
parent c98dd8a584
commit bb824a9fb7
2 changed files with 125 additions and 12 deletions

View File

@@ -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;