|
@@ -25,7 +25,7 @@ namespace bbiwarg.Graphics
|
|
|
private Stopwatch watch;
|
|
|
|
|
|
public OutputWindow(VideoHandle videoHandle)
|
|
|
- : base((int) (Constants.WindwoSizeFactor * HelperFunctions.thresholdRange<int>(1, Constants.NumImagesPerRow, videoHandle.OutputImages.Length) * videoHandle.Width),
|
|
|
+ : base((int) (Constants.WindwoSizeFactor * Math.Max(1, Math.Min(Constants.NumImagesPerRow, videoHandle.OutputImages.Length)) * videoHandle.Width),
|
|
|
(int) (Constants.WindwoSizeFactor * (1 + (videoHandle.OutputImages.Length - 1) / Constants.NumImagesPerRow) * videoHandle.Height))
|
|
|
{
|
|
|
this.videoHandle = videoHandle;
|