diff options
Diffstat (limited to 'vcl/source/outdev/pixel.cxx')
-rw-r--r-- | vcl/source/outdev/pixel.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/vcl/source/outdev/pixel.cxx b/vcl/source/outdev/pixel.cxx index 0dba1fbd6ae8..b031ef40c1e7 100644 --- a/vcl/source/outdev/pixel.cxx +++ b/vcl/source/outdev/pixel.cxx @@ -16,6 +16,9 @@ * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ + +#include <cassert> + #include <sal/types.h> #include <memory> @@ -57,7 +60,7 @@ Color OutputDevice::GetPixel( const Point& rPt ) const void OutputDevice::DrawPixel( const Point& rPt ) { - assert_if_double_buffered_window(); + assert(!is_double_buffered_window()); if ( mpMetaFile ) mpMetaFile->AddAction( new MetaPointAction( rPt ) ); @@ -87,7 +90,7 @@ void OutputDevice::DrawPixel( const Point& rPt ) void OutputDevice::DrawPixel( const Point& rPt, const Color& rColor ) { - assert_if_double_buffered_window(); + assert(!is_double_buffered_window()); Color aColor = ImplDrawModeToColor( rColor ); @@ -116,7 +119,7 @@ void OutputDevice::DrawPixel( const Point& rPt, const Color& rColor ) void OutputDevice::DrawPixel( const Polygon& rPts, const Color* pColors ) { - assert_if_double_buffered_window(); + assert(!is_double_buffered_window()); if ( !pColors ) { @@ -163,7 +166,7 @@ void OutputDevice::DrawPixel( const Polygon& rPts, const Color* pColors ) void OutputDevice::DrawPixel( const Polygon& rPts, const Color& rColor ) { - assert_if_double_buffered_window(); + assert(!is_double_buffered_window()); if( rColor != COL_TRANSPARENT && ! ImplIsRecordLayout() ) { |