From a11fb5f38d901bb42b90de1b6cb14dfce188b037 Mon Sep 17 00:00:00 2001 From: Ray Date: Sun, 14 Mar 2021 13:11:35 +0100 Subject: [PATCH] Update image_raw_importer.c --- examples/image_raw_importer/image_raw_importer.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/image_raw_importer/image_raw_importer.c b/examples/image_raw_importer/image_raw_importer.c index 53870fc..6f80453 100644 --- a/examples/image_raw_importer/image_raw_importer.c +++ b/examples/image_raw_importer/image_raw_importer.c @@ -128,17 +128,17 @@ int main() // Select correct format depending on channels and bpp if (bpp == 8) { - if (channels == 1) format = UNCOMPRESSED_GRAYSCALE; - else if (channels == 2) format = UNCOMPRESSED_GRAY_ALPHA; - else if (channels == 3) format = UNCOMPRESSED_R8G8B8; - else if (channels == 4) format = UNCOMPRESSED_R8G8B8A8; + if (channels == 1) format = PIXELFORMAT_UNCOMPRESSED_GRAYSCALE; + else if (channels == 2) format = PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA; + else if (channels == 3) format = PIXELFORMAT_UNCOMPRESSED_R8G8B8; + else if (channels == 4) format = PIXELFORMAT_UNCOMPRESSED_R8G8B8A8; } else if (bpp == 32) { - if (channels == 1) format = UNCOMPRESSED_R32; + if (channels == 1) format = PIXELFORMAT_UNCOMPRESSED_R32; else if (channels == 2) TraceLog(LOG_WARNING, "Channel bit-depth not supported!"); - else if (channels == 3) format = UNCOMPRESSED_R32G32B32; - else if (channels == 4) format = UNCOMPRESSED_R32G32B32A32; + else if (channels == 3) format = PIXELFORMAT_UNCOMPRESSED_R32G32B32; + else if (channels == 4) format = PIXELFORMAT_UNCOMPRESSED_R32G32B32A32; } else if (bpp == 16) TraceLog(LOG_WARNING, "Channel bit-depth not supported!"); }