summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-15 08:11:09 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-15 13:09:09 +0200
commitca014eca8a07ae97125afa6e47d56c44269d7a73 (patch)
treea4ee4b6bf659625f021a4e621e7575dcc6d37222 /vcl
parent6eba86ae9d6c8550e069ef933889610aee309381 (diff)
loplugin:constantparam
Change-Id: I895ceffa468d84d22e4a81b7a6b06eaed0bd839d Reviewed-on: https://gerrit.libreoffice.org/61776 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/opengl/x11/gdiimpl.cxx9
-rw-r--r--vcl/unx/generic/gdi/gdiimpl.cxx11
-rw-r--r--vcl/unx/generic/gdi/gdiimpl.hxx3
3 files changed, 7 insertions, 16 deletions
diff --git a/vcl/opengl/x11/gdiimpl.cxx b/vcl/opengl/x11/gdiimpl.cxx
index 98eb604fd1b3..d3b933379a41 100644
--- a/vcl/opengl/x11/gdiimpl.cxx
+++ b/vcl/opengl/x11/gdiimpl.cxx
@@ -117,7 +117,7 @@ namespace
return 0;
}
- GLXFBConfig* getFBConfig(Display* dpy, Window win, int& nBestFBC, bool bUseDoubleBufferedRendering)
+ GLXFBConfig* getFBConfig(Display* dpy, Window win, int& nBestFBC)
{
OpenGLZone aZone;
@@ -150,9 +150,6 @@ namespace
None
};
- if (!bUseDoubleBufferedRendering)
- visual_attribs[1] = False;
-
int fbCount = 0;
GLXFBConfig* pFBC = glXChooseFBConfig( dpy,
screen,
@@ -260,7 +257,7 @@ SystemWindowData X11OpenGLContext::generateWinData(vcl::Window* pParent, bool /*
return aWinData;
int best_fbc = -1;
- GLXFBConfig* pFBC = getFBConfig(dpy, win, best_fbc, true);
+ GLXFBConfig* pFBC = getFBConfig(dpy, win, best_fbc);
if (!pFBC)
return aWinData;
@@ -302,7 +299,7 @@ bool X11OpenGLContext::ImplInit()
if (hasCreateContextAttribsARB && !mbRequestLegacyContext)
{
int best_fbc = -1;
- GLXFBConfig* pFBC = getFBConfig(m_aGLWin.dpy, m_aGLWin.win, best_fbc, /*bUseDoubleBufferedRendering*/true);
+ GLXFBConfig* pFBC = getFBConfig(m_aGLWin.dpy, m_aGLWin.win, best_fbc);
if (pFBC && best_fbc != -1)
{
diff --git a/vcl/unx/generic/gdi/gdiimpl.cxx b/vcl/unx/generic/gdi/gdiimpl.cxx
index 7ed38cc6eab5..7e2b412b55de 100644
--- a/vcl/unx/generic/gdi/gdiimpl.cxx
+++ b/vcl/unx/generic/gdi/gdiimpl.cxx
@@ -1573,8 +1573,7 @@ bool X11SalGraphicsImpl::drawFilledTrapezoids( const basegfx::B2DTrapezoid* pB2D
bool X11SalGraphicsImpl::drawFilledTriangles(
const basegfx::B2DHomMatrix& rObjectToDevice,
const basegfx::triangulator::B2DTriangleVector& rTriangles,
- double fTransparency,
- bool bPixelOffset)
+ double fTransparency)
{
if(rTriangles.empty())
return true;
@@ -1589,10 +1588,7 @@ bool X11SalGraphicsImpl::drawFilledTriangles(
// prepare transformation for ObjectToDevice coordinate system
basegfx::B2DHomMatrix aObjectToDevice(rObjectToDevice);
- if(bPixelOffset)
- {
- aObjectToDevice = basegfx::utils::createTranslateB2DHomMatrix(0.5, 0.5) * aObjectToDevice;
- }
+ aObjectToDevice = basegfx::utils::createTranslateB2DHomMatrix(0.5, 0.5) * aObjectToDevice;
// convert the Triangles into XRender-Triangles
std::vector<XTriangle> aTriVector(rTriangles.size());
@@ -1847,8 +1843,7 @@ bool X11SalGraphicsImpl::drawPolyLine(
drawFilledTriangles(
rObjectToDevice,
pSystemDependentData_Triangulation->getTriangles(),
- fTransparency,
- true));
+ fTransparency));
// restore the original brush GC
mnBrushColor = aKeepBrushColor;
diff --git a/vcl/unx/generic/gdi/gdiimpl.hxx b/vcl/unx/generic/gdi/gdiimpl.hxx
index db13696c4ffc..0ea0e2958a03 100644
--- a/vcl/unx/generic/gdi/gdiimpl.hxx
+++ b/vcl/unx/generic/gdi/gdiimpl.hxx
@@ -97,8 +97,7 @@ private:
bool drawFilledTriangles(
const basegfx::B2DHomMatrix& rObjectToDevice,
const basegfx::triangulator::B2DTriangleVector& rTriangles,
- double fTransparency,
- bool bPixelOffset);
+ double fTransparency);
long GetGraphicsHeight() const;