Skip to content

Commit 14b79c8

Browse files
authored
Merge pull request #495 from treeform/guzba
little things
2 parents b3a1576 + 2e59533 commit 14b79c8

4 files changed

Lines changed: 5 additions & 2 deletions

File tree

bindings/bindings.nim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,7 @@ exportProcs:
306306
scale(float32, float32)
307307
inverse(Matrix3)
308308
snapToPixels
309+
mix(Color, Color, float32)
309310

310311
writeFiles("bindings/generated", "Pixie")
311312

src/pixie/blends.nim

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

3-
import chroma, common, std/math
3+
import chroma, common
44

55
# See https://www.w3.org/TR/compositing-1/
66
# See https://www.khronos.org/registry/OpenGL/extensions/KHR/KHR_blend_equation_advanced.txt

src/pixie/fileformats/gif.nim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ proc decodeGif*(data: string): Gif {.raises: [PixieError].} =
105105

106106
pos += 9
107107

108+
if imageWidth > screenWidth or imageHeight > screenHeight:
109+
raise newException(PixieError, "Invalid GIF frame dimensions")
110+
108111
if pos + localColorTableSize * 3 > data.len:
109112
failInvalid()
110113

src/pixie/paths.nim

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,6 @@ proc transform*(path: Path, mat: Mat3) {.raises: [].} =
270270
path.commands[0] = Move.float32
271271

272272
var i: int
273-
# for command in path.commands.mitems:
274273
while i < path.commands.len:
275274
let kind = path.commands[i].PathCommandKind
276275
inc i

0 commit comments

Comments
 (0)