diff options
author | Noel Grandin <noel@peralex.com> | 2015-06-02 08:47:33 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-06-04 08:30:24 +0200 |
commit | ab377324bb8fe081f1e01cd04f534bcf817fda28 (patch) | |
tree | 09f91678f910886f6c840f65007388e27d211f0c /include/basebmp | |
parent | 52e4ba4b98fdee1f0624e7195927725171984096 (diff) |
convert DrawMode to scoped enum
Change-Id: Ie4a7705cc3d042d08178e562a2c2ffaf0be3810f
Diffstat (limited to 'include/basebmp')
-rw-r--r-- | include/basebmp/drawmodes.hxx | 10 | ||||
-rw-r--r-- | include/basebmp/genericcolorimageaccessor.hxx | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/include/basebmp/drawmodes.hxx b/include/basebmp/drawmodes.hxx index a5f98ed3d418..0d7ce92d24c9 100644 --- a/include/basebmp/drawmodes.hxx +++ b/include/basebmp/drawmodes.hxx @@ -24,12 +24,12 @@ namespace basebmp { - enum DrawMode + enum class DrawMode { - /** Default draw mode, which simply renders pixel in the + /** Default draw mode, which simply renders pixels in the requested color */ - DrawMode_PAINT, + Paint, /** XOR draw mode, which XORs each existing pixel value with the new color. @@ -37,10 +37,10 @@ namespace basebmp The result of this XOR operation strongly depends on the underlying pixel format, as it is defined by the bitwise XOR of the (potentially palette-looked-up) color value and - the existing pixel content (being it true color or a + the existing pixel content (be it true color or a palette index). */ - DrawMode_XOR + XOR }; } diff --git a/include/basebmp/genericcolorimageaccessor.hxx b/include/basebmp/genericcolorimageaccessor.hxx index 5aaa95327176..6d7cd531f58b 100644 --- a/include/basebmp/genericcolorimageaccessor.hxx +++ b/include/basebmp/genericcolorimageaccessor.hxx @@ -40,7 +40,7 @@ namespace basebmp explicit GenericColorImageAccessor( BitmapDeviceSharedPtr const& rTarget ) : mpDevice(rTarget), - meDrawMode(DrawMode_PAINT) + meDrawMode(DrawMode::Paint) {} GenericColorImageAccessor( BitmapDeviceSharedPtr const& rTarget, |