[Libreoffice-commits] core.git: vcl/unx

Caolán McNamara caolanm at redhat.com
Wed Mar 4 09:15:40 PST 2015


 vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

New commits:
commit 5262c5101e9c6e2a79f400a625f27df9b3bfbef5
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Mar 4 17:13:36 2015 +0000

    rControlRegion.[Left|Top]- 1 + 1 -> rControlRegion.[Left|Top]
    
    and little single line pixel artifacts have gone away somewhere
    along the line
    
    Change-Id: Id4a5b34f80f1be73272798d72a70bd4a1524e0d3

diff --git a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
index c86bac58..09b2b50 100644
--- a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
+++ b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
@@ -910,19 +910,14 @@ bool GtkSalGraphics::drawNativeControl( ControlType nType, ControlPart nPart, co
         return false;
     }
 
-    cairo_rectangle_int_t translatedRegion = { (int) rControlRegion.Left() - 1, (int) rControlRegion.Top() - 1,
-                                               (int) rControlRegion.GetWidth() + 2, (int) rControlRegion.GetHeight() + 2 };
-
     cairo_t *cr = getCairoContext();
-    cairo_translate(cr, translatedRegion.x, translatedRegion.y);
+    cairo_translate(cr, rControlRegion.Left(), rControlRegion.Top());
 
     gtk_style_context_save(context);
     gtk_style_context_set_state(context, flags);
     if (styleClass)
         gtk_style_context_add_class(context, styleClass);
 
-    cairo_translate(cr, 1, 1);
-
     switch(renderType)
     {
     case RENDER_BACKGROUND:


More information about the Libreoffice-commits mailing list