diff --git a/src/pixie/images.nim b/src/pixie/images.nim index 07cfdb5..fcffa64 100644 --- a/src/pixie/images.nim +++ b/src/pixie/images.nim @@ -130,8 +130,6 @@ proc isOneColor(image: Image, color: ColorRGBX): bool = ## Checks if the entire image is color. result = true - let color = image.getRgbaUnsafe(0, 0) - var i: int when defined(amd64) and not defined(pixieNoSimd): let colorVec = mm_set1_epi32(cast[int32](color)) diff --git a/tests/test_images.nim b/tests/test_images.nim index 1b052a0..74e1a63 100644 --- a/tests/test_images.nim +++ b/tests/test_images.nim @@ -197,3 +197,8 @@ block: let image = newImage(100, 100) image[99, 99] = rgba(255, 255, 255, 255) doAssert not image.isTransparent() + +block: + let image = newImage(100, 100) + image.fill(rgba(255, 255, 255, 255)) + doAssert not image.isTransparent()