diff options
author | Mattes D <github@xoft.cz> | 2016-02-24 14:57:01 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2016-02-24 14:57:36 +0100 |
commit | be9f24d942e535d989100d9eddc7bc0a0ab6bb69 (patch) | |
tree | cb6f0bbcdbd67f62a3073868fe78f7e7c0b167bd | |
parent | Made ProtIntGen's max size compile-time-configurable. (diff) | |
download | cuberite-be9f24d942e535d989100d9eddc7bc0a0ab6bb69.tar cuberite-be9f24d942e535d989100d9eddc7bc0a0ab6bb69.tar.gz cuberite-be9f24d942e535d989100d9eddc7bc0a0ab6bb69.tar.bz2 cuberite-be9f24d942e535d989100d9eddc7bc0a0ab6bb69.tar.lz cuberite-be9f24d942e535d989100d9eddc7bc0a0ab6bb69.tar.xz cuberite-be9f24d942e535d989100d9eddc7bc0a0ab6bb69.tar.zst cuberite-be9f24d942e535d989100d9eddc7bc0a0ab6bb69.zip |
Diffstat (limited to '')
-rw-r--r-- | src/LinearUpscale.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/LinearUpscale.h b/src/LinearUpscale.h index adc873912..b75cb4f82 100644 --- a/src/LinearUpscale.h +++ b/src/LinearUpscale.h @@ -92,8 +92,8 @@ template <typename TYPE> void LinearUpscale2DArray( { // For optimization reasons, we're storing the upscaling ratios in a fixed-size arrays of these sizes // Feel free to enlarge them if needed, but keep in mind that they're on the stack - const int MAX_UPSCALE_X = 128; - const int MAX_UPSCALE_Y = 128; + const int MAX_UPSCALE_X = 129; + const int MAX_UPSCALE_Y = 129; ASSERT(a_Src != nullptr); ASSERT(a_Dst != nullptr); @@ -101,8 +101,8 @@ template <typename TYPE> void LinearUpscale2DArray( ASSERT(a_SrcSizeY > 0); ASSERT(a_UpscaleX > 0); ASSERT(a_UpscaleY > 0); - ASSERT(a_UpscaleX <= MAX_UPSCALE_X); - ASSERT(a_UpscaleY <= MAX_UPSCALE_Y); + ASSERT(a_UpscaleX < MAX_UPSCALE_X); + ASSERT(a_UpscaleY < MAX_UPSCALE_Y); // Pre-calculate the upscaling ratios: TYPE RatioX[MAX_UPSCALE_X]; |