fix preview resizing

This commit is contained in:
mid 2025-10-12 12:19:46 +03:00
parent 542b271c6d
commit 8b78f0cdf7

View File

@ -992,7 +992,7 @@ void ImageViewer::SetImage(CHiImage *chim) {
ResizeImage(siez);
}
void ImageViewer::ResizeImage(float size) {
float w = size, h = (float) bufH / bufW * siez;
float w = size, h = (float) bufH / bufW * size;
if(w <= 1 || h <= 1) {
return;