forked from Green-Sky/tomato
fix crop getting ignored when not scaling (oops)
This commit is contained in:
@@ -569,8 +569,6 @@ void SendImagePopup::render(float time_delta) {
|
|||||||
(int)std::ceil(crop_rect.w*scale_x),
|
(int)std::ceil(crop_rect.w*scale_x),
|
||||||
(int)std::ceil(crop_rect.h*scale_y)
|
(int)std::ceil(crop_rect.h*scale_y)
|
||||||
);
|
);
|
||||||
} else {
|
|
||||||
tmp_img = original_image;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<uint8_t> new_data;
|
std::vector<uint8_t> new_data;
|
||||||
|
|||||||
Reference in New Issue
Block a user