Removed
Link Here
|
1 |
--- wxVillaLib/ThumbnailFactory.cpp 2023-07-24 10:21:13.152544000 +0100 |
2 |
+++ wxVillaLib/ThumbnailFactory.cpp 2023-07-24 10:18:45.440168000 +0100 |
3 |
@@ -363,7 +363,7 @@ |
4 |
img = decoder.GetNextFrame(); |
5 |
} |
6 |
if (img.Ok() && decoder.GetFrameAspectRatio() > 0 |
7 |
- && labs(decoder.GetFrameAspectRatio()*100 - img.GetWidth()*100/img.GetHeight()) >= 5) { |
8 |
+ && std::abs(decoder.GetFrameAspectRatio()*100 - img.GetWidth()*100/img.GetHeight()) >= 5) { |
9 |
if (lround(img.GetWidth() / decoder.GetFrameAspectRatio()) > img.GetHeight()) |
10 |
img.Rescale(img.GetWidth(), lround(img.GetWidth() / decoder.GetFrameAspectRatio())); |
11 |
else |