From ddabf803a3e18a18af4dc002cae2971255ce5c95 Mon Sep 17 00:00:00 2001 From: Ryan Oldenburg Date: Thu, 21 Jan 2021 23:34:34 -0600 Subject: [PATCH] pixieUseStb --- src/pixie/fileformats/jpg.nim | 6 +++--- tests/test_jpg.nim | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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