From 0b15c58692074c64e3067b2cf98bfb4ca8a18ed5 Mon Sep 17 00:00:00 2001 From: Ignacio Date: Sat, 4 Apr 2020 10:18:58 -0700 Subject: [PATCH] Fix more build errors. --- src/nvimage/Quantize.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/nvimage/Quantize.cpp b/src/nvimage/Quantize.cpp index 4aaf3bb..64842ef 100644 --- a/src/nvimage/Quantize.cpp +++ b/src/nvimage/Quantize.cpp @@ -32,8 +32,8 @@ void nv::Quantize::BinaryAlpha( Image * image, int alpha_threshold /*= 127*/ ) { nvCheck(image != NULL); - const uint w = image->width(); - const uint h = image->height(); + const uint w = image->width; + const uint h = image->height; for(uint y = 0; y < h; y++) { for(uint x = 0; x < w; x++) { @@ -76,8 +76,8 @@ void nv::Quantize::FloydSteinberg_BinaryAlpha( Image * image, int alpha_threshol { nvCheck(image != NULL); - const uint w = image->width(); - const uint h = image->height(); + const uint w = image->width; + const uint h = image->height; // @@ Use fixed point? float * row0 = new float[(w+2)]; @@ -130,8 +130,8 @@ void nv::Quantize::Truncate(Image * image, uint rsize, uint gsize, uint bsize, u { nvCheck(image != NULL); - const uint w = image->width(); - const uint h = image->height(); + const uint w = image->width; + const uint h = image->height; for(uint y = 0; y < h; y++) { for(uint x = 0; x < w; x++) { @@ -163,8 +163,8 @@ void nv::Quantize::FloydSteinberg(Image * image, uint rsize, uint gsize, uint bs { nvCheck(image != NULL); - const uint w = image->width(); - const uint h = image->height(); + const uint w = image->width; + const uint h = image->height; Vector4 * row0 = new Vector4[w+2]; Vector4 * row1 = new Vector4[w+2];