Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions bindings/bindings.nim
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ exportProcs:
scale(float32, float32)
inverse(Matrix3)
snapToPixels
mix(Color, Color, float32)

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

Expand Down
2 changes: 1 addition & 1 deletion src/pixie/blends.nim
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Blending modes.

import chroma, common, std/math
import chroma, common

# See https://www.w3.org/TR/compositing-1/
# See https://www.khronos.org/registry/OpenGL/extensions/KHR/KHR_blend_equation_advanced.txt
Expand Down
3 changes: 3 additions & 0 deletions src/pixie/fileformats/gif.nim
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ proc decodeGif*(data: string): Gif {.raises: [PixieError].} =

pos += 9

if imageWidth > screenWidth or imageHeight > screenHeight:
raise newException(PixieError, "Invalid GIF frame dimensions")

if pos + localColorTableSize * 3 > data.len:
failInvalid()

Expand Down
1 change: 0 additions & 1 deletion src/pixie/paths.nim
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,6 @@ proc transform*(path: Path, mat: Mat3) {.raises: [].} =
path.commands[0] = Move.float32

var i: int
# for command in path.commands.mitems:
while i < path.commands.len:
let kind = path.commands[i].PathCommandKind
inc i
Expand Down