Compare commits

..

2 Commits

Author SHA1 Message Date
nou 77c312800a Update metainfo 2023-04-19 19:07:15 +02:00
nou 21e90b92dc Fix assert lo < hi in std::clamp 2023-04-19 14:33:29 +02:00
2 changed files with 14 additions and 3 deletions
+3 -3
View File
@@ -253,11 +253,11 @@ void ImageWidget::setMTFParams(float low, float mid, float high)
void ImageWidget::setOffset(float dx, float dy)
{
m_dx = std::clamp(dx, 0.0f, m_imgWidth * m_scale - m_width);
m_dx = std::clamp(dx, 0.0f, std::max(0.0f, m_imgWidth * m_scale - m_width));
if(m_showThumbnails)
m_dy = std::clamp(dy, 0.0f, (float)((m_thumbnailCount / (m_width / THUMB_SIZE_BORDER) + 2) * THUMB_SIZE_BORDER_Y - m_height));
m_dy = std::clamp(dy, 0.0f, std::max(0.0f, (float)((m_thumbnailCount / (m_width / THUMB_SIZE_BORDER) + 2) * THUMB_SIZE_BORDER_Y - m_height)));
else
m_dy = std::clamp(dy, 0.0f, m_imgHeight * m_scale - m_height);
m_dy = std::clamp(dy, 0.0f, std::max(0.0f, m_imgHeight * m_scale - m_height));
updateScrollBars();
update();
}
+11
View File
@@ -48,6 +48,17 @@
</screenshots>
<content_rating type="oars-1.1"/>
<releases>
<release version="20230419" date="2023-04-19">
<description>
<ul>
<li>Add file sorting</li>
<li>Improved zoom and scrolling.</li>
<li>Shift modify if zoom on mouse position or center</li>
<li>Fix issue with XISF from NINA</li>
<li>Fix crash in flatpak version</li>
</ul>
</description>
</release>
<release version="20230212" date="2023-02-12">
<description>
<ul>