diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2015-01-19 16:04:24 +1100 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2015-01-24 14:27:37 +1100 |
commit | 35131df0ff833423809ea38621002322cf2d75b2 (patch) | |
tree | 246ccff6329b4cfd48412092b44398fddb622cea /vcl/inc | |
parent | e3c0025461bdf55e62a308a76c3aa0a35109f076 (diff) |
vcl: Reduce OpenGLX11CairoTextRender surface area to size of text bounds
With this patch I get the text boundary and use it to reduce the size
of the surface to this area. However, this is mainly needed for
OpenGLX11CairoTextRender, which creates a surface image and uses this
for OpenGL rendering.
Change-Id: Icffc19bed89aaa2ff84ae845d274258a6fca27da
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/cairotextrender.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/inc/cairotextrender.hxx b/vcl/inc/cairotextrender.hxx index d59d75cd2036..6eb887d32d36 100644 --- a/vcl/inc/cairotextrender.hxx +++ b/vcl/inc/cairotextrender.hxx @@ -80,7 +80,7 @@ class CairoTextRender : public TextRenderImpl protected: virtual GlyphCache& getPlatformGlyphCache() = 0; - virtual cairo_surface_t* getCairoSurface() = 0; + virtual cairo_surface_t* getCairoSurface( const ServerFontLayout &rLayout ) = 0; virtual void getSurfaceOffset(double& nDX, double& nDY) = 0; virtual void drawSurface(cairo_t* cr) = 0; |