Kaydet (Commit) 1cdf1e90 authored tarafından Caolán McNamara's avatar Caolán McNamara

damaged does the same gtk_widget_queue_draw_area with -1 top and +2 dimension

Change-Id: I86428b381680455dfd8dcb2ef28decfd4063fe59
üst 429ff887
...@@ -78,7 +78,6 @@ private: ...@@ -78,7 +78,6 @@ private:
static GtkStyleContext *mpComboboxStyle; static GtkStyleContext *mpComboboxStyle;
static GtkStyleContext *mpListboxStyle; static GtkStyleContext *mpListboxStyle;
void queue_draw_area(cairo_rectangle_int_t *region);
void getStyleContext( GtkStyleContext** style, GtkWidget* widget ); void getStyleContext( GtkStyleContext** style, GtkWidget* widget );
Rectangle NWGetScrollButtonRect( ControlPart nPart, Rectangle aAreaRect ); Rectangle NWGetScrollButtonRect( ControlPart nPart, Rectangle aAreaRect );
Rectangle NWGetSpinButtonRect( ControlPart nPart, Rectangle aAreaRect); Rectangle NWGetSpinButtonRect( ControlPart nPart, Rectangle aAreaRect);
......
...@@ -963,17 +963,11 @@ bool GtkSalGraphics::drawNativeControl( ControlType nType, ControlPart nPart, co ...@@ -963,17 +963,11 @@ bool GtkSalGraphics::drawNativeControl( ControlType nType, ControlPart nPart, co
} }
cairo_destroy(cr); // unref cairo_destroy(cr); // unref
queue_draw_area(&translatedRegion); mpFrame->damaged(basegfx::B2IBox(rControlRegion.Left(), rControlRegion.Top(), rControlRegion.Right(), rControlRegion.Bottom()));
return true; return true;
} }
void GtkSalGraphics::queue_draw_area(cairo_rectangle_int_t *region)
{
if (!mpFrame->isDuringRender())
gtk_widget_queue_draw_area(mpFrame->getWindow(), region->x, region->y, region->width, region->height);
}
bool GtkSalGraphics::getNativeControlRegion( ControlType nType, ControlPart nPart, const Rectangle& rControlRegion, ControlState, bool GtkSalGraphics::getNativeControlRegion( ControlType nType, ControlPart nPart, const Rectangle& rControlRegion, ControlState,
const ImplControlValue&, const OUString&, const ImplControlValue&, const OUString&,
Rectangle &rNativeBoundingRegion, Rectangle &rNativeContentRegion ) Rectangle &rNativeBoundingRegion, Rectangle &rNativeContentRegion )
......
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