aboutsummaryrefslogtreecommitdiff
path: root/test/dw_imgbuf_mem_test.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2013-06-17 10:56:43 +0200
committerSebastian Geerken <devnull@localhost>2013-06-17 10:56:43 +0200
commit126ae913efb3829c980a2151db5bbcfd68c5b39c (patch)
tree8eb0e38bfc1fa28577a5cfabfb7ae93209a5b2f4 /test/dw_imgbuf_mem_test.cc
parent4e96d8f79ecb97994cf446386ce0dd1a1368da44 (diff)
Added gamma correction value to dw::core::ImgBuf.
Diffstat (limited to 'test/dw_imgbuf_mem_test.cc')
-rw-r--r--test/dw_imgbuf_mem_test.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/dw_imgbuf_mem_test.cc b/test/dw_imgbuf_mem_test.cc
index 45beef8b..e2532ea7 100644
--- a/test/dw_imgbuf_mem_test.cc
+++ b/test/dw_imgbuf_mem_test.cc
@@ -29,7 +29,7 @@ void solution1 ()
FltkPlatform *platform = new FltkPlatform ();
Layout *layout = new Layout (platform);
- Imgbuf *rootbuf = layout->createImgbuf (Imgbuf::RGB, 100, 100);
+ Imgbuf *rootbuf = layout->createImgbuf (Imgbuf::RGB, 100, 100, 1);
rootbuf->ref (); // Extra reference by the dicache.
printf ("=== Can be deleted? %s.\n",
rootbuf->lastReference () ? "Yes" : "No");
@@ -52,7 +52,7 @@ void solution2 ()
FltkPlatform *platform = new FltkPlatform ();
Layout *layout = new Layout (platform);
- Imgbuf *rootbuf = layout->createImgbuf (Imgbuf::RGB, 100, 100);
+ Imgbuf *rootbuf = layout->createImgbuf (Imgbuf::RGB, 100, 100, 1);
rootbuf->setDeleteOnUnref (false);
printf ("=== Can be deleted? %s.\n",
!rootbuf->isReferred () ? "Yes" : "No");
@@ -86,7 +86,7 @@ void solution3 ()
FltkPlatform *platform = new FltkPlatform ();
Layout *layout = new Layout (platform);
- Imgbuf *rootbuf = layout->createImgbuf (Imgbuf::RGB, 100, 100);
+ Imgbuf *rootbuf = layout->createImgbuf (Imgbuf::RGB, 100, 100, 1);
rootbuf->connectDeletion (new RootbufDeletionReceiver ());
Imgbuf *scaledbuf = rootbuf->getScaledBuf (50, 50);
rootbuf->unref ();