if ((length+begin) > size())\r
length = size()-begin;\r
\r
+ // accounting for null terminator.\r
+ s32 substrAllocLength = length + 1;\r
string<T> o;\r
- o.reserve(length+1);\r
+ o.reserve(substrAllocLength);\r
\r
if ( !make_lower )\r
{\r
o.array[i] = locale_lower ( array[i+begin] );\r
}\r
\r
- o.array[length] = 0;\r
+ o.array[substrAllocLength - 1] = 0;\r
o.used = length + 1;\r
\r
return o;\r
IRR_CASE_IIMAGE_COMPRESSED_FORMAT\r
os::Printer::log("CColorConverter::convert_viaFormat method doesn't support compressed images.", ELL_WARNING);\r
break;\r
-#ifndef _DEBUG\r
+\r
default:\r
break;\r
-#endif\r
}\r
break;\r
case ECF_R5G6B5:\r
IRR_CASE_IIMAGE_COMPRESSED_FORMAT\r
os::Printer::log("CColorConverter::convert_viaFormat method doesn't support compressed images.", ELL_WARNING);\r
break;\r
-#ifndef _DEBUG\r
+\r
default:\r
break;\r
-#endif\r
}\r
break;\r
case ECF_A8R8G8B8:\r
IRR_CASE_IIMAGE_COMPRESSED_FORMAT\r
os::Printer::log("CColorConverter::convert_viaFormat method doesn't support compressed images.", ELL_WARNING);\r
break;\r
-#ifndef _DEBUG\r
+\r
default:\r
break;\r
-#endif\r
}\r
break;\r
case ECF_R8G8B8:\r
IRR_CASE_IIMAGE_COMPRESSED_FORMAT\r
os::Printer::log("CColorConverter::convert_viaFormat method doesn't support compressed images.", ELL_WARNING);\r
break;\r
-#ifndef _DEBUG\r
+\r
default:\r
break;\r
-#endif\r
}\r
break;\r
IRR_CASE_IIMAGE_COMPRESSED_FORMAT\r
os::Printer::log("CColorConverter::convert_viaFormat method doesn't support compressed images.", ELL_WARNING);\r
break;\r
-#ifndef _DEBUG\r
+\r
default:\r
- break;\r
-#endif\r
+ break;\r
}\r
}\r
\r
#if defined(_IRR_LINUX_X11_XINPUT2_)\r
int XI_EXTENSIONS_OPCODE;\r
#endif\r
-};\r
+}\r
\r
namespace irr\r
{\r
const core::rect<s32>& sourceRect, const core::rect<s32>* clipRect = 0,\r
const video::SColor* const colors = 0, bool useAlphaChannelOfTexture = false) _IRR_OVERRIDE_;\r
\r
+ // Explicitly bring in base class methods, otherwise\r
+ // this overload would hide them.\r
+ using CNullDriver::draw2DImage;\r
virtual void draw2DImage(const video::ITexture* texture, u32 layer, bool flip);\r
\r
//! draws a set of 2d images, using a color and the alpha channel of the\r
taken = 1;\r
}\r
\r
+ // as of yet unused\r
+ case ESNRP_LIGHT:\r
+ case ESNRP_SHADOW:\r
case ESNRP_NONE: // ignore this one\r
break;\r
}\r
{\r
return a.rotation == b.rotation;\r
}\r
-};\r
+}\r
\r
namespace irr\r
{\r