Skip to content

Commit

Permalink
Found another video mode that needs double lines.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihara committed Oct 29, 2023
1 parent 1404113 commit b267263
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion nimshot.nimble
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Package

version = "0.1.1"
version = "0.1.2"
author = "Eugene Medvedev"
description = "A very specialized tool for RG35XX"
license = "MIT"
Expand Down
10 changes: 7 additions & 3 deletions src/nimshot.nim
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,19 @@ proc processImage(fromData: string, maskImage: Image,
except PixieError:
return ""

# Dirty hack: Try to save distorted SNES and Amiga screenshots by doubling lines.
# Dirty hack: Try to save distorted SNES, Amiga and PSX screenshots by doubling lines,
# through remembering specific sizes of screenshots where pixels are not square.
if (sourceImage.width == 512 and sourceImage.height == 224) or (
sourceImage.width == 512 and sourceImage.height == 239) or (
sourceImage.width == 720 and sourceImage.height == 270):
sourceImage.width == 720 and sourceImage.height == 270) or (
sourceImage.width == 640 and sourceImage.height == 240):
sourceImage = sourceImage.resize(sourceImage.width,
sourceImage.height*2)
# Turns out, vertically doubling modes also exist.
# I sure hope there isn't an arcade game with this exact resolution.
if (sourceImage.width == 256 and sourceImage.height == 448):
sourceImage = sourceImage.resize(sourceImage.width*2, sourceImage.height)
sourceImage = sourceImage.resize(sourceImage.width*2,
sourceImage.height)

let
# We explicilty fit into something four times as wide as the screen,
Expand Down

0 comments on commit b267263

Please sign in to comment.