From 1404113d2c8b2651dc628c948992681501c66141 Mon Sep 17 00:00:00 2001 From: Eugene Medvedev Date: Sat, 28 Oct 2023 13:18:50 +0300 Subject: [PATCH] Who'd have thought. --- nimshot.nimble | 2 +- src/nimshot.nim | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/nimshot.nimble b/nimshot.nimble index 55f76ec..6d43ea4 100644 --- a/nimshot.nimble +++ b/nimshot.nimble @@ -1,6 +1,6 @@ # Package -version = "0.1.0" +version = "0.1.1" author = "Eugene Medvedev" description = "A very specialized tool for RG35XX" license = "MIT" diff --git a/src/nimshot.nim b/src/nimshot.nim index 24d45bb..3fafddc 100644 --- a/src/nimshot.nim +++ b/src/nimshot.nim @@ -98,6 +98,9 @@ proc processImage(fromData: string, maskImage: Image, sourceImage.width == 720 and sourceImage.height == 270): sourceImage = sourceImage.resize(sourceImage.width, sourceImage.height*2) + # Turns out, vertically doubling modes also exist. + if (sourceImage.width == 256 and sourceImage.height == 448): + sourceImage = sourceImage.resize(sourceImage.width*2, sourceImage.height) let # We explicilty fit into something four times as wide as the screen,