[Libreoffice-commits] core.git: canvas/source
Tor Lillqvist
tml at collabora.com
Fri Jan 27 10:11:06 UTC 2017
canvas/source/cairo/cairo_canvasbitmap.cxx | 2 +-
canvas/source/cairo/cairo_canvasbitmap.hxx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 5b2f40d9182303fc64cfa8e37b69edbf21f5e6fe
Author: Tor Lillqvist <tml at collabora.com>
Date: Fri Jan 27 12:10:03 2017 +0200
Fix comments to match reality
Change-Id: I99b49a3c8472b063316baeebdaa89119832a2a1b
diff --git a/canvas/source/cairo/cairo_canvasbitmap.cxx b/canvas/source/cairo/cairo_canvasbitmap.cxx
index 88cef30..932dd33 100644
--- a/canvas/source/cairo/cairo_canvasbitmap.cxx
+++ b/canvas/source/cairo/cairo_canvasbitmap.cxx
@@ -109,7 +109,7 @@ namespace cairocanvas
uno::Any aRV( sal_Int32(0) );
// 0 ... get BitmapEx
// 1 ... get Pixbuf with bitmap RGB content
- // 2 ... get Pixbuf with bitmap alpha mask
+ // 2 ... return nothing (empty Any)
switch( nHandle )
{
case 0:
diff --git a/canvas/source/cairo/cairo_canvasbitmap.hxx b/canvas/source/cairo/cairo_canvasbitmap.hxx
index 8b58334..355a5b9 100644
--- a/canvas/source/cairo/cairo_canvasbitmap.hxx
+++ b/canvas/source/cairo/cairo_canvasbitmap.hxx
@@ -108,7 +108,7 @@ namespace cairocanvas
// handle values have these meanings:
// 0 ... get pointer to BitmapEx
// 1 ... get X pixmap handle to rgb content
- // 2 ... get X pitmap handle to alpha mask
+ // 2 ... FIXME: leftover? ever called with this? always returns nothing (empty Any)
// returned any contains either BitmapEx pointer or array of three Any value
// 1st a bool value: true - free the pixmap after used by XFreePixmap, false do nothing, the pixmap is used internally in the canvas
// 2nd the pixmap handle
More information about the Libreoffice-commits
mailing list