thumbnail size to 150x150
This commit is contained in:
commit
775252b567
@ -948,7 +948,7 @@ public class Game : GameWindow {
|
|||||||
List<Task> tasks = new();
|
List<Task> tasks = new();
|
||||||
foreach (Photo p in allPhotos) {
|
foreach (Photo p in allPhotos) {
|
||||||
tasks.Add(Task.Run( () => {
|
tasks.Add(Task.Run( () => {
|
||||||
p.LoadThumbnailAsync(new Vector2i(128, 128));
|
p.LoadThumbnailAsync(new Vector2i(150, 150));
|
||||||
lock (numThumbnailsLoadedLock) {
|
lock (numThumbnailsLoadedLock) {
|
||||||
numThumbnailsLoaded++;
|
numThumbnailsLoaded++;
|
||||||
toast.Set($"[{numThumbnailsLoaded}/{allPhotos.Count}] Loading thumbnails");
|
toast.Set($"[{numThumbnailsLoaded}/{allPhotos.Count}] Loading thumbnails");
|
||||||
@ -1011,8 +1011,6 @@ public class Game : GameWindow {
|
|||||||
bool cropActive = activeTool is CropTool;
|
bool cropActive = activeTool is CropTool;
|
||||||
bool straightenActive = activeTool is StraightenTool;
|
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 scaleX = 1f * geometry.PhotoBox.Size.X / active.Size.X;
|
||||||
float scaleY = 1f * geometry.PhotoBox.Size.Y / active.Size.Y;
|
float scaleY = 1f * geometry.PhotoBox.Size.Y / active.Size.Y;
|
||||||
float scale = Math.Min(scaleX, scaleY);
|
float scale = Math.Min(scaleX, scaleY);
|
||||||
|
Loading…
Reference in New Issue
Block a user