3.1.1 bugfix out of bounds
This commit is contained in:
parent
21d00222d4
commit
11ba8e7af0
|
@ -1,4 +1,4 @@
|
|||
version = "3.1.0"
|
||||
version = "3.1.1"
|
||||
author = "Andre von Houck and Ryan Oldenburg"
|
||||
description = "Full-featured 2d graphics library for Nim."
|
||||
license = "MIT"
|
||||
|
|
|
@ -750,6 +750,10 @@ proc drawUber(
|
|||
xStart = xStart.clamp(0, a.width)
|
||||
xStop = xStop.clamp(0, a.width)
|
||||
|
||||
# Skip this row if there is nothing in-bounds to draw
|
||||
if xStart == a.width or xStop == 0:
|
||||
continue
|
||||
|
||||
if blendMode == bmMask:
|
||||
if xStart > 0:
|
||||
zeroMem(a.data[a.dataIndex(0, y)].addr, 4 * xStart)
|
||||
|
|
Loading…
Reference in a new issue