thumbnail size to 150x150

This commit is contained in:
Colin McMillen 2023-09-19 14:14:07 -04:00
commit 775252b567

View File

@ -948,7 +948,7 @@ public class Game : GameWindow {
List<Task> tasks = new();
foreach (Photo p in allPhotos) {
tasks.Add(Task.Run( () => {
p.LoadThumbnailAsync(new Vector2i(128, 128));
p.LoadThumbnailAsync(new Vector2i(150, 150));
lock (numThumbnailsLoadedLock) {
numThumbnailsLoaded++;
toast.Set($"[{numThumbnailsLoaded}/{allPhotos.Count}] Loading thumbnails");
@ -1011,8 +1011,6 @@ public class Game : GameWindow {
bool cropActive = activeTool is CropTool;
bool straightenActive = activeTool is StraightenTool;
// FIXME: make a function for scaling & centering one box on another.
// FIXME: cropping is fucky because activeScale is using the texture size, not the photo size.
float scaleX = 1f * geometry.PhotoBox.Size.X / active.Size.X;
float scaleY = 1f * geometry.PhotoBox.Size.Y / active.Size.Y;
float scale = Math.Min(scaleX, scaleY);