This commit is contained in:
2025-03-18 17:29:19 +01:00
parent 6fd17fbdf5
commit fe3e5f66be
3 changed files with 16 additions and 7 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ bool ScriptEngine::isMarked(const File *file)
{ {
bool ret; bool ret;
QString path = file->absoluteFilePath(); QString path = file->absoluteFilePath();
QMetaObject::invokeMethod(_database, [this, path](){ _database->isMarked(path); }, Qt::BlockingQueuedConnection, &ret); QMetaObject::invokeMethod(_database, [this, path](){ return _database->isMarked(path); }, Qt::BlockingQueuedConnection, &ret);
return ret; return ret;
} }
+9
View File
@@ -58,6 +58,15 @@
</screenshots> </screenshots>
<content_rating type="oars-1.1"/> <content_rating type="oars-1.1"/>
<releases> <releases>
<release version="20250318" date="2025-03-18">
<description>
<ul>
<li>Fix OpenGL ES drawings</li>
<li>Fix mark/unmark files from script</li>
<li>Fix stretching of float images with values outside of 0-1 range</li>
</ul>
</description>
</release>
<release version="20250302" date="2025-03-02"> <release version="20250302" date="2025-03-02">
<description> <description>
<ul> <ul>
+6 -6
View File
@@ -9,15 +9,15 @@ void RawImageToHTBITMAP(std::shared_ptr<RawImage> &rawImage, HBITMAP *hbmp, UINT
{ {
rawImage->calcStats(); rawImage->calcStats();
DWORD thre = 20; DWORD thre = 10;
DWORD dataSize = 4; DWORD dataSize = 4;
HRESULT hr = HRESULT_FROM_WIN32(RegGetValueW(HKEY_CURRENT_USER, L"SOFTWARE\\nou\\Tenmon\\settings", L"thumbnailstretchthreshold", RRF_RT_DWORD, NULL, &thre, &dataSize)); //HRESULT hr = HRESULT_FROM_WIN32(RegGetValueW(HKEY_CURRENT_USER, L"SOFTWARE\\nou\\Tenmon\\settings", L"thumbnailstretchthreshold", RRF_RT_DWORD, NULL, &thre, &dataSize));
float thref = 0.2f; float thref = 0.1f;
if(hr == S_OK) /*if(hr == S_OK)
thref = thre / 100.0f; thref = thre / 100.0f;*/
if(rawImage->imageStats().m_median[0] < rawImage->norm() * thref) if(rawImage->imageStats().m_mean[0] < rawImage->norm() * thref)
{ {
//OutputDebugStringA("Stretch image"); //OutputDebugStringA("Stretch image");
MTFParam params = rawImage->calcMTFParams(); MTFParam params = rawImage->calcMTFParams();