From daad20337456ac20023b0bd61b0c61f3a80790a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rebecca=20Ko=CC=88nig?= Date: Fri, 10 Feb 2023 21:36:22 +0100 Subject: [PATCH 1/2] Conditionally remove workaround for image glitch --- src/ui/puzzle-preview.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ui/puzzle-preview.lua b/src/ui/puzzle-preview.lua index f44f8fb..7f4f537 100644 --- a/src/ui/puzzle-preview.lua +++ b/src/ui/puzzle-preview.lua @@ -1,5 +1,7 @@ class("PuzzlePreview").extends(gfx.sprite) +local SCALE_FIX_OFFSET = playdate.systemInfo.pdxversion < 11300 and -1 or 0 + function PuzzlePreview:init() PuzzlePreview.super.init(self, gfx.image.new(400, 240, gfx.kColorWhite)) @@ -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 From a36e93482dc6b8849682d6022598b7a5d9638feb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rebecca=20Ko=CC=88nig?= Date: Mon, 13 Feb 2023 21:07:39 +0100 Subject: [PATCH 2/2] Update buildNumber and version to 2.1.1 --- src/constants.lua | 2 +- src/pdxinfo | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/constants.lua b/src/constants.lua index 8253581..26f954f 100644 --- a/src/constants.lua +++ b/src/constants.lua @@ -1,4 +1,4 @@ -VERSION = "2.1.0" +VERSION = "2.1.1" CELL = 16 TOP_NUMBER_HEIGHT = 14 diff --git a/src/pdxinfo b/src/pdxinfo index 09b24b6..71275db 100644 --- a/src/pdxinfo +++ b/src/pdxinfo @@ -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