diff --git a/scriptengine.cpp b/scriptengine.cpp
index 126bd9a..4f77b0f 100644
--- a/scriptengine.cpp
+++ b/scriptengine.cpp
@@ -86,7 +86,7 @@ bool ScriptEngine::isMarked(const File *file)
{
bool ret;
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;
}
diff --git a/space.nouspiro.tenmon.metainfo.xml b/space.nouspiro.tenmon.metainfo.xml
index 8cfa8fc..89d36d1 100644
--- a/space.nouspiro.tenmon.metainfo.xml
+++ b/space.nouspiro.tenmon.metainfo.xml
@@ -58,6 +58,15 @@
+
+
+
+ - Fix OpenGL ES drawings
+ - Fix mark/unmark files from script
+ - Fix stretching of float images with values outside of 0-1 range
+
+
+
diff --git a/thumbnailer/loadxisf.cpp b/thumbnailer/loadxisf.cpp
index 059b496..5e5400e 100644
--- a/thumbnailer/loadxisf.cpp
+++ b/thumbnailer/loadxisf.cpp
@@ -9,15 +9,15 @@ void RawImageToHTBITMAP(std::shared_ptr &rawImage, HBITMAP *hbmp, UINT
{
rawImage->calcStats();
- DWORD thre = 20;
+ DWORD thre = 10;
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;
- if(hr == S_OK)
- thref = thre / 100.0f;
+ float thref = 0.1f;
+ /*if(hr == S_OK)
+ 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");
MTFParam params = rawImage->calcMTFParams();