diff options
author | Sebastian Geerken <devnull@localhost> | 2013-06-17 10:56:43 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2013-06-17 10:56:43 +0200 |
commit | 126ae913efb3829c980a2151db5bbcfd68c5b39c (patch) | |
tree | 8eb0e38bfc1fa28577a5cfabfb7ae93209a5b2f4 /src/imgbuf.cc | |
parent | 4e96d8f79ecb97994cf446386ce0dd1a1368da44 (diff) |
Added gamma correction value to dw::core::ImgBuf.
Diffstat (limited to 'src/imgbuf.cc')
-rw-r--r-- | src/imgbuf.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/imgbuf.cc b/src/imgbuf.cc index 51f86b74..16eb5c31 100644 --- a/src/imgbuf.cc +++ b/src/imgbuf.cc @@ -90,7 +90,8 @@ void a_Imgbuf_unref(void *v_imgbuf) /* * Create a new Imgbuf */ -void *a_Imgbuf_new(void *v_dw, int img_type, uint_t width, uint_t height) +void *a_Imgbuf_new(void *v_dw, int img_type, uint_t width, uint_t height, + double gamma) { Layout *layout = ((Widget*)v_dw)->getLayout(); if (!layout) { @@ -103,7 +104,7 @@ void *a_Imgbuf_new(void *v_dw, int img_type, uint_t width, uint_t height) linebuf = (uchar_t*) dRealloc(linebuf, linebuf_size); } - return (void*)layout->createImgbuf(Imgbuf::RGB, width, height); + return (void*)layout->createImgbuf(Imgbuf::RGB, width, height, gamma); } /* |