|
|
@ -474,7 +474,7 @@ public class UiGeometry { |
|
|
|
public UiGeometry(Vector2i windowSize, int starSize) { |
|
|
|
WindowSize = windowSize; |
|
|
|
|
|
|
|
int numThumbnails = WindowSize.Y / 100; |
|
|
|
int numThumbnails = Math.Max(WindowSize.Y / 100, 1); |
|
|
|
int thumbnailHeight = WindowSize.Y / numThumbnails; |
|
|
|
int thumbnailWidth = (int) 1.0 * thumbnailHeight * activeCamera.Resolution.X / activeCamera.Resolution.Y; |
|
|
|
|
|
|
@ -912,7 +912,7 @@ public class Game : GameWindow { |
|
|
|
// FIXME: show a progress bar or something.
|
|
|
|
private async void ExportPhotos() { |
|
|
|
JpegEncoder encoder = new JpegEncoder() { Quality = 100 }; |
|
|
|
string outputRoot = @"c:\users\colin\desktop\totte-output"; |
|
|
|
string outputRoot = @"c:\users\colin\pictures\photos\"; |
|
|
|
foreach (Photo p in photos) { |
|
|
|
await Task.Run( () => { p.SaveAsJpeg(outputRoot, encoder); }); |
|
|
|
} |
|
|
|