Skip to content

Commit

Permalink
Merge pull request #142 from guzba/master
Browse files Browse the repository at this point in the history
0.7.4
  • Loading branch information
treeform authored Mar 10, 2021
2 parents d593a5a + 0fd45dd commit 342db58
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fidget.nimble
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Package

version = "0.7.3"
version = "0.7.4"
author = "treeform"
description = "Fidget - UI Library"
license = "MIT"
Expand Down
3 changes: 3 additions & 0 deletions src/fidget/opengl/context.nim
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,9 @@ proc line*(
h = ceil(abs(a.y - b.y)).int
pos = vec2(min(a.x, b.x), min(a.y, b.y))

if w == 0 or h == 0:
return

if hash notin ctx.entries:
var image = newImage(w, h)
image.strokeSegment(
Expand Down
2 changes: 1 addition & 1 deletion src/fidget/opengl/formatflippy.nim
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ proc save*(flippy: Flippy, filePath: string) =
# TODO Talk to Ryan about format data compression.
var s = newStringStream()
for c in mip.data:
s.write(c.rgba())
s.write(c.color.rgba())
s.setPosition(0)
var stringData = s.readAll()
var zipped = compress(stringData)
Expand Down

0 comments on commit 342db58

Please sign in to comment.