Skip to content

Commit 037ee51

Browse files
authored
Merge pull request #151 from treeform/newVmath
Fix for new vmath.
2 parents 93bd3ff + 0110c4c commit 037ee51

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/fidget/opengl/context.nim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,9 @@ func `[]=`(t: var Table[Hash, Rect], key: string, rect: Rect) =
188188
func `[]`(t: var Table[Hash, Rect], key: string): Rect =
189189
t[hash(key)]
190190

191+
proc hash(v: Vec2): Hash =
192+
hash((v.x, v.y))
193+
191194
proc grow(ctx: Context) =
192195
ctx.draw()
193196
ctx.atlasSize = ctx.atlasSize * 2

0 commit comments

Comments
 (0)