Skip to content

Commit 0fd45dd

Browse files
committed
0.7.4
1 parent d593a5a commit 0fd45dd

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

fidget.nimble

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Package
22

3-
version = "0.7.3"
3+
version = "0.7.4"
44
author = "treeform"
55
description = "Fidget - UI Library"
66
license = "MIT"

src/fidget/opengl/context.nim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,9 @@ proc line*(
598598
h = ceil(abs(a.y - b.y)).int
599599
pos = vec2(min(a.x, b.x), min(a.y, b.y))
600600

601+
if w == 0 or h == 0:
602+
return
603+
601604
if hash notin ctx.entries:
602605
var image = newImage(w, h)
603606
image.strokeSegment(

src/fidget/opengl/formatflippy.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ proc save*(flippy: Flippy, filePath: string) =
8181
# TODO Talk to Ryan about format data compression.
8282
var s = newStringStream()
8383
for c in mip.data:
84-
s.write(c.rgba())
84+
s.write(c.color.rgba())
8585
s.setPosition(0)
8686
var stringData = s.readAll()
8787
var zipped = compress(stringData)

0 commit comments

Comments
 (0)