diff options
Diffstat (limited to 'drawinglayer/README.md')
-rw-r--r-- | drawinglayer/README.md | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/drawinglayer/README.md b/drawinglayer/README.md index 38bdc2197c70..04ebcadf0b17 100644 --- a/drawinglayer/README.md +++ b/drawinglayer/README.md @@ -24,18 +24,15 @@ A stripped down version with extended comments: std::unique_ptr<drawinglayer::processor2d::BaseProcessor2D> pProcessor2D( drawinglayer::processor2d::createPixelProcessor2DFromOutputDevice(...)); - if (pProcessor2D) - { - // Fill-in the display list. - drawinglayer::primitive2d::Primitive2DSequence aSequence(2); - - aSequence[0] = aHatchPrimitive; - aSequence[1] = aBlackRectanglePrimitive; - - // Render it to the virtual device. - pProcessor2D->process(aSequence); - pProcessor2D.reset(); - } + // Fill-in the display list. + drawinglayer::primitive2d::Primitive2DSequence aSequence(2); + + aSequence[0] = aHatchPrimitive; + aSequence[1] = aBlackRectanglePrimitive; + + // Render it to the virtual device. + pProcessor2D->process(aSequence); + pProcessor2D.reset(); // Obtain the bitmap that was rendered from the virtual device, to re-use // it in the widget. |