Mercurial > public > ostc_companion
changeset 6:fc91c3e09285 default tip
Bugfix OTSC 4/5 icon size check.
| author | Ideenmodellierer |
|---|---|
| date | Sat, 03 Jan 2026 20:49:43 +0100 |
| parents | 115cfa4a3239 |
| children | |
| files | OSTC4Operations.cpp |
| diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/OSTC4Operations.cpp Tue Dec 30 21:41:02 2025 +0100 +++ b/OSTC4Operations.cpp Sat Jan 03 20:49:43 2026 +0100 @@ -252,7 +252,7 @@ QByteArray bin = bmp->getTransferBytes(); bmp->getImageXY(&width, &height); - if(bin.size() < 200000) + if(bin.size() < 0x20000 - 12) /* max bin size - header */ { buf3offset[0] = 0x20; buf3offset[1] = 0x00; @@ -328,7 +328,7 @@ } else { - LOG_THROW("Image to large. Must be < 200k."); + LOG_THROW("Image to large. Must be < 128k."); } PROGRESS_RESET(); }
