From ede8fd02587268f0d7868f74c8eb8053f697c48f Mon Sep 17 00:00:00 2001 From: "nothings.org" Date: Sun, 15 Jul 2007 10:59:15 +0000 Subject: [PATCH] resize after changing resize quality --- imv.c | 6 +++++- notes.txt | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/imv.c b/imv.c index 6b1f3d2..597033a 100644 --- a/imv.c +++ b/imv.c @@ -1926,8 +1926,11 @@ BOOL CALLBACK PrefDlgProc(HWND hdlg, UINT imsg, WPARAM wparam, LPARAM lparam) stb_mutex_end(cache_mutex); // force a reload of the current image advance(0); - } else if (old_cubic != upsample_cubic) + } else if (old_cubic != upsample_cubic) { + free(cur_filename); + cur_filename = NULL; advance(0); + } // save the data out to the registry reg_save(); @@ -2449,6 +2452,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine pending_resize.size = qs; queue_resize(qs.w, qs.h, source_c, FALSE); } + //flush = FALSE; } qs.w = 0; } diff --git a/notes.txt b/notes.txt index d7034d9..95f8915 100644 --- a/notes.txt +++ b/notes.txt @@ -1,6 +1,7 @@ Version 0.94: Beta 5 * (bugfix: fix cacheing code to allow refreshing current image after flip etc.) * (feature: use 'f' to flip image vertically, in case FreeImage sucks) + * bugfix: changing image resize quality in preferences refreshes on OK * feature: sort filenames to sort numbers in human-friendly order * feature: show index within sorted list * feature: ctrl-C puts current image filename (with full path) in the clipboard