resize after changing resize quality

This commit is contained in:
nothings.org 2007-07-15 10:59:15 +00:00
parent ca0cea5b5f
commit ede8fd0258
2 changed files with 6 additions and 1 deletions

6
imv.c
View File

@ -1926,8 +1926,11 @@ BOOL CALLBACK PrefDlgProc(HWND hdlg, UINT imsg, WPARAM wparam, LPARAM lparam)
stb_mutex_end(cache_mutex); stb_mutex_end(cache_mutex);
// force a reload of the current image // force a reload of the current image
advance(0); advance(0);
} else if (old_cubic != upsample_cubic) } else if (old_cubic != upsample_cubic) {
free(cur_filename);
cur_filename = NULL;
advance(0); advance(0);
}
// save the data out to the registry // save the data out to the registry
reg_save(); reg_save();
@ -2449,6 +2452,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
pending_resize.size = qs; pending_resize.size = qs;
queue_resize(qs.w, qs.h, source_c, FALSE); queue_resize(qs.w, qs.h, source_c, FALSE);
} }
//flush = FALSE;
} }
qs.w = 0; qs.w = 0;
} }

View File

@ -1,6 +1,7 @@
Version 0.94: Beta 5 Version 0.94: Beta 5
* (bugfix: fix cacheing code to allow refreshing current image after flip etc.) * (bugfix: fix cacheing code to allow refreshing current image after flip etc.)
* (feature: use 'f' to flip image vertically, in case FreeImage sucks) * (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: sort filenames to sort numbers in human-friendly order
* feature: show index within sorted list * feature: show index within sorted list
* feature: ctrl-C puts current image filename (with full path) in the clipboard * feature: ctrl-C puts current image filename (with full path) in the clipboard