Browse Source

thumbnail size to 150x150

main
Colin McMillen 7 months ago
parent
commit
775252b567
  1. 4
      Program.cs

4
Program.cs

@ -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);

Loading…
Cancel
Save