vcl/opengl/gdiimpl.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit cedf39fcd2e18428b1e580f5e0e9e06c7eed2dee Author: Tomaž Vajngerl <[email protected]> Date: Mon Mar 7 00:05:28 2016 +0100 opengl: fix inv.scale values are always integer - cid#1352479 Force cast to double to avoid integer division - which gives a wrong inverse scale value. Change-Id: I0135e44ef07f3915619f9dfead9aadf50fc03685 Reviewed-on: https://gerrit.libreoffice.org/23462 Tested-by: Jenkins <[email protected]> Reviewed-by: Miklos Vajna <[email protected]> diff --git a/vcl/opengl/gdiimpl.cxx b/vcl/opengl/gdiimpl.cxx index 59545f8e..3384ebe 100644 --- a/vcl/opengl/gdiimpl.cxx +++ b/vcl/opengl/gdiimpl.cxx @@ -1386,8 +1386,8 @@ void OpenGLSalGraphicsImpl::DrawTransformedTexture( if( nDestHeight == 0 || nDestWidth == 0 ) return; - const double ixscale = rTexture.GetWidth() / nDestWidth; - const double iyscale = rTexture.GetHeight() / nDestHeight; + const double ixscale = rTexture.GetWidth() / double(nDestWidth); + const double iyscale = rTexture.GetHeight() / double(nDestHeight); bool areaScaling = false; bool fastAreaScaling = false;
_______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
