summaryrefslogtreecommitdiff
path: root/basebmp/test
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2011-05-17 10:03:46 +0200
committerDavid Tardon <dtardon@redhat.com>2011-05-18 06:06:35 +0200
commit87fbe86b7140a77cc6e38f063b08af9213078ca3 (patch)
treecc3dec63d481f9774ec1d7089a4c8c828c44a53f /basebmp/test
parenteaea49187f4ea29bba32042ef8aeced45304773b (diff)
generalize ScopedBitmapAccess and simplify usage
It can be used for AlphaMask too now.
Diffstat (limited to 'basebmp/test')
-rw-r--r--basebmp/test/bmpdemo.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/basebmp/test/bmpdemo.cxx b/basebmp/test/bmpdemo.cxx
index ab260655d968..effce214bb2f 100644
--- a/basebmp/test/bmpdemo.cxx
+++ b/basebmp/test/bmpdemo.cxx
@@ -1189,8 +1189,7 @@ void TestWindow::Paint( const Rectangle& /*rRect*/ )
// Fill bitmap with generated content
{
- ScopedBitmapWriteAccess pWriteAccess( aBitmap.AcquireWriteAccess(),
- aBitmap );
+ Bitmap::ScopedWriteAccess pWriteAccess( aBitmap );
for( int y=0; y<aTestSize.getY(); ++y )
for( int x=0; x<aTestSize.getX(); ++x )
pWriteAccess->SetPixel(y,x,