Skip to content

Commit

Permalink
Merge pull request #13 from veu/next
Browse files Browse the repository at this point in the history
Version 2.1.1
  • Loading branch information
veu authored Feb 13, 2023
2 parents 2b43b9d + a36e934 commit 6ee2a66
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/constants.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION = "2.1.0"
VERSION = "2.1.1"

CELL = 16
TOP_NUMBER_HEIGHT = 14
Expand Down
4 changes: 2 additions & 2 deletions src/pdxinfo
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ author=RDK
description=Playdate’s #1 nonogram game
bundleID=net.monometric.sketch-share-solve
imagePath=launcherAssets/
version=2.1.0
buildNumber=201000
version=2.1.1
buildNumber=201010
8 changes: 5 additions & 3 deletions src/ui/puzzle-preview.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
class("PuzzlePreview").extends(gfx.sprite)

local SCALE_FIX_OFFSET <const> = playdate.systemInfo.pdxversion < 11300 and -1 or 0

function PuzzlePreview:init()
PuzzlePreview.super.init(self, gfx.image.new(400, 240, gfx.kColorWhite))

Expand Down Expand Up @@ -39,13 +41,13 @@ function PuzzlePreview:redraw()
if self.preview then
if puzzle.rotation == 1 then
gfx.setClipRect(SIDEBAR_WIDTH + 59, 92, 62, 92)
self.preview:drawScaled(SIDEBAR_WIDTH + 35, 81, 6)
self.preview:drawScaled(SIDEBAR_WIDTH + SCALE_FIX_OFFSET + 36, 81, 6)
elseif puzzle.rotation == 2 then
gfx.setClipRect(SIDEBAR_WIDTH + 59, 92, 62, 92)
self.preview:drawScaled(SIDEBAR_WIDTH + 29, 81, 6)
self.preview:drawScaled(SIDEBAR_WIDTH + SCALE_FIX_OFFSET + 30, 81, 6)
else
gfx.setClipRect(SIDEBAR_WIDTH + 44, 107, 92, 62)
self.preview:drawScaled(SIDEBAR_WIDTH + 32, 84, 6)
self.preview:drawScaled(SIDEBAR_WIDTH + SCALE_FIX_OFFSET + 33, 84, 6)
end
end
end
Expand Down

0 comments on commit 6ee2a66

Please sign in to comment.