Skip to content

Commit

Permalink
Merge branch 'master' of github.com:treeform/windy
Browse files Browse the repository at this point in the history
  • Loading branch information
treeform committed Jul 28, 2022
2 parents 2f48536 + bba3385 commit 6e787dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
7 changes: 1 addition & 6 deletions src/windy/platforms/macos/platform.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 1 addition & 2 deletions windy.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 6e787dd

Please sign in to comment.