Browse Source

GraphicsContext: Fix unused variable warning

v6.1.6
reuk 3 years ago
parent
commit
72abf72c79
No known key found for this signature in database GPG Key ID: FCB43929F012EE5C
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      modules/juce_graphics/contexts/juce_GraphicsContext.cpp

+ 4
- 4
modules/juce_graphics/contexts/juce_GraphicsContext.cpp View File

@@ -34,10 +34,10 @@ namespace
#if JUCE_DEBUG
const int maxVal = 0x3fffffff;
jassert ((int) x >= -maxVal && (int) x <= maxVal
&& (int) y >= -maxVal && (int) y <= maxVal
&& (int) w >= 0 && (int) w <= maxVal
&& (int) h >= 0 && (int) h <= maxVal);
jassertquiet ((int) x >= -maxVal && (int) x <= maxVal
&& (int) y >= -maxVal && (int) y <= maxVal
&& (int) w >= 0 && (int) w <= maxVal
&& (int) h >= 0 && (int) h <= maxVal);
#endif
return { x, y, w, h };


Loading…
Cancel
Save