Automatic high detail preview rendering when entering 100% views

See issue 838
This commit is contained in:
Oliver Duis
2011-07-14 13:57:32 +02:00
parent 4b4bf4b79e
commit 091cc56a01
11 changed files with 85 additions and 47 deletions

View File

@@ -21,6 +21,7 @@
#include <cstring>
#include <guiutils.h>
#include <refreshmap.h>
using namespace rtengine;
@@ -97,6 +98,9 @@ void CropHandler::setZoom (int z, int centerx, int centery) {
if (centery>=0)
y = centery;
// maybe demosaic etc. if we cross the border to >100%
bool needsFullRefresh = (z>=1000 && zoom<1000);
zoom = z;
if (zoom>=1000) {
cw = ww * 1000 / zoom;
@@ -110,9 +114,13 @@ void CropHandler::setZoom (int z, int centerx, int centery) {
cy = y - ch / 2;
compDim ();
if (enabled)
if (enabled) {
if (needsFullRefresh)
ipc->startProcessing(M_HIGHQUAL);
else
update ();
}
}
void CropHandler::setWSize (int w, int h) {