summaryrefslogtreecommitdiff
path: root/canvas
diff options
context:
space:
mode:
Diffstat (limited to 'canvas')
-rw-r--r--canvas/source/cairo/cairo_canvashelper_text.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/canvas/source/cairo/cairo_canvashelper_text.cxx b/canvas/source/cairo/cairo_canvashelper_text.cxx
index 056ae519201f..2763800d5283 100644
--- a/canvas/source/cairo/cairo_canvashelper_text.cxx
+++ b/canvas/source/cairo/cairo_canvashelper_text.cxx
@@ -108,7 +108,7 @@ namespace cairocanvas
return true;
}
- static int
+ static void
setupOutDevState( OutputDevice& rOutDev,
const rendering::XCanvas* pOwner,
const rendering::ViewState& viewState,
@@ -120,8 +120,6 @@ namespace cairocanvas
2,
3 /* text */ );
- int nTransparency(0);
-
// TODO(P2): Don't change clipping all the time, maintain current clip
// state and change only when update is necessary
::canvas::tools::clipOutDev(viewState, renderState, rOutDev);
@@ -135,12 +133,9 @@ namespace cairocanvas
// extract alpha, and make color opaque
// afterwards. Otherwise, OutputDevice won't draw anything
- nTransparency = 255 - aColor.GetAlpha();
aColor.SetAlpha(255);
rOutDev.SetTextColor( aColor );
-
- return nTransparency;
}
namespace {