Add wxCOMPOSITION_INVALID mode and use it to simplify the code.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 2 Jul 2011 10:29:11 +0000 (10:29 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 2 Jul 2011 10:29:11 +0000 (10:29 +0000)
commitfec4e45897e44182abc696adc5fd95e66f48e862
treed2f01fa479c294e1a4a1a5d8787bd7259357a8be
parent749f13d4a2d25b3ab4509131b425d02fb2327569
Add wxCOMPOSITION_INVALID mode and use it to simplify the code.

Having an invalid element in wxCompositionMode enum allows to directly return
it from TranslateRasterOp() function instead of needing a separate bool
parameter to indicate that a ROP couldn't be translated.

This also incidentally fixes warnings about possibly uninitialized variables
in optimized g++ builds.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68127 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/graphics.h
interface/wx/graphics.h
src/common/dcgraph.cpp