Kaydet (Commit) 5262c510 authored tarafından Caolán McNamara's avatar Caolán McNamara

rControlRegion.[Left|Top]- 1 + 1 -> rControlRegion.[Left|Top]

and little single line pixel artifacts have gone away somewhere
along the line

Change-Id: Id4a5b34f80f1be73272798d72a70bd4a1524e0d3
üst 1cdf1e90
...@@ -910,19 +910,14 @@ bool GtkSalGraphics::drawNativeControl( ControlType nType, ControlPart nPart, co ...@@ -910,19 +910,14 @@ bool GtkSalGraphics::drawNativeControl( ControlType nType, ControlPart nPart, co
return false; 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_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_save(context);
gtk_style_context_set_state(context, flags); gtk_style_context_set_state(context, flags);
if (styleClass) if (styleClass)
gtk_style_context_add_class(context, styleClass); gtk_style_context_add_class(context, styleClass);
cairo_translate(cr, 1, 1);
switch(renderType) switch(renderType)
{ {
case RENDER_BACKGROUND: case RENDER_BACKGROUND:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment