Mercurial > games > semicongine
changeset 1079:87b72668d723
merge
author | sam <sam@basx.dev> |
---|---|
date | Wed, 03 Apr 2024 19:53:20 +0700 |
parents | 84d9822c028d (diff) 799a630aa2bb (current diff) |
children | 33374c4350e7 |
files | |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/semicongine/core/imagetypes.nim Wed Apr 03 02:59:21 2024 -0700 +++ b/semicongine/core/imagetypes.nim Wed Apr 03 19:53:20 2024 +0700 @@ -71,7 +71,7 @@ proc asLinear*[T](image: Image[T]): Image[T] = result = Image[T](width: image.width, height: image.height, imagedata: newSeq[T](image.imagedata.len)) - for i in 0 .. image.imagedata.len: + for i in 0 ..< image.imagedata.len: result.imagedata[i] = srgb2linear(image.imagedata[i]) proc `$`*(image: Image): string =