diff --git a/src/windy/platforms/macos/platform.nim b/src/windy/platforms/macos/platform.nim index f9aa533..04ea980 100644 --- a/src/windy/platforms/macos/platform.nim +++ b/src/windy/platforms/macos/platform.nim @@ -959,13 +959,8 @@ proc getClipboardImage*(): Image = if pngData.int == 0: return - # Pixie needs a decodePng for ptr + len, copy into string for now - - var copiedData = newString(pngData.length) - copyMem(copiedData[0].addr, pngData.bytes, pngData.length) - try: - result = newImage(decodePng(copiedData)) + result = decodePng(pngData.bytes, pngData.length.int).convertToImage() except: return diff --git a/windy.nimble b/windy.nimble index 5670def..f0f8489 100644 --- a/windy.nimble +++ b/windy.nimble @@ -7,7 +7,6 @@ srcDir = "src" requires "nim >= 1.4.8" requires "opengl >= 1.2.6" -requires "pixie >= 4.3.0" +requires "pixie >= 4.4.0" requires "urlly >= 1.0.0" -requires "zippy >= 0.10.2" requires "ws >= 0.5.0"