Skip to content

Commit 55acbe1

Browse files
committed
Final improvements for resampling
1 parent 97b095e commit 55acbe1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Source/Utility/NVGUtils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ void NVGImage::loadJUCEImage(NVGcontext* context, Image const& image, int const
232232
flags |= withMipmaps ? NVG_IMAGE_GENERATE_MIPMAPS : 0;
233233

234234
if (image.isARGB())
235-
subImage.imageId = nvgCreateImageARGB(nvg, totalWidth, totalHeight, flags, imageData.data);
235+
subImage.imageId = nvgCreateImageARGB_sRGB(nvg, totalWidth, totalHeight, flags, imageData.data);
236236
else if (image.isSingleChannel())
237237
subImage.imageId = nvgCreateImageAlpha(nvg, totalWidth, totalHeight, flags, imageData.data);
238238

@@ -264,7 +264,7 @@ void NVGImage::loadJUCEImage(NVGcontext* context, Image const& image, int const
264264
flags |= withMipmaps ? NVG_IMAGE_GENERATE_MIPMAPS : 0;
265265

266266
if (image.isARGB())
267-
subImage.imageId = nvgCreateImageARGB(nvg, w, h, flags, imageData.data);
267+
subImage.imageId = nvgCreateImageARGB_sRGB(nvg, w, h, flags, imageData.data);
268268
else if (image.isSingleChannel())
269269
subImage.imageId = nvgCreateImageAlpha(nvg, w, h, flags, imageData.data);
270270

0 commit comments

Comments
 (0)