fix preview resizing
This commit is contained in:
parent
542b271c6d
commit
8b78f0cdf7
@ -992,7 +992,7 @@ void ImageViewer::SetImage(CHiImage *chim) {
|
|||||||
ResizeImage(siez);
|
ResizeImage(siez);
|
||||||
}
|
}
|
||||||
void ImageViewer::ResizeImage(float size) {
|
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) {
|
if(w <= 1 || h <= 1) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user