rename script functions

This commit is contained in:
GenevensiS
2026-01-19 16:46:54 +01:00
parent d421d0d92b
commit ef835e6f46
19 changed files with 202 additions and 164 deletions
+5 -1
View File
@@ -306,7 +306,11 @@ bool CardListBase::parseImage(Image& image, vector<CardP>& out) {
if (value && !value->filename.empty()) {
wxRect rect = wxRect(0,0,0,0);
int degrees = 0;
value->filename.getExternalRect(rect, degrees);
value->filename.getExternalRect(rect, degrees);
rect.x = max(0, rect.x);
rect.y = max(0, rect.y);
rect.width -= max(0, (rect.x + rect.width) - image.GetWidth());
rect.height -= max(0, (rect.y + rect.height) - image.GetHeight());
if (rect.width > 0 && rect.height > 0) {
Image img = image.GetSubImage(rect);
img = rotate_image(img, deg_to_rad(360-degrees));