diff --git a/src/pixie/fileformats/jpg.nim b/src/pixie/fileformats/jpg.nim index 287ab89..9070ae5 100644 --- a/src/pixie/fileformats/jpg.nim +++ b/src/pixie/fileformats/jpg.nim @@ -1,6 +1,6 @@ import pixie/images, pixie/common -when defined(useStb): +when defined(pixieUseStb): import pixie/fileformats/stb_image/stb_image const @@ -8,8 +8,8 @@ const proc decodeJpg*(data: seq[uint8]): Image = ## Decodes the JPEG into an Image. - when not defined(useStb): - raise newException(PixieError, "Decoding JPG requires -d:useStb") + when not defined(pixieUseStb): + raise newException(PixieError, "Decoding JPG requires -d:pixieUseStb") else: var width: int diff --git a/tests/test_jpg.nim b/tests/test_jpg.nim index b495c9a..dea36ff 100644 --- a/tests/test_jpg.nim +++ b/tests/test_jpg.nim @@ -1,4 +1,4 @@ -when defined(useStb): +when defined(pixieUseStb): import pixie/fileformats/jpg let