forked from AuroraMiddleware/gtk
gdkwindow: Clean up formatting
Tabs to spaces, add some whitespace.
This commit is contained in:
parent
ec5e913a9b
commit
e700305279
@ -2830,17 +2830,18 @@ gdk_window_end_paint (GdkWindow *window)
|
|||||||
cairo_set_source_surface (cr, window->current_paint.surface, 0, 0);
|
cairo_set_source_surface (cr, window->current_paint.surface, 0, 0);
|
||||||
gdk_cairo_region (cr, full_clip);
|
gdk_cairo_region (cr, full_clip);
|
||||||
cairo_clip (cr);
|
cairo_clip (cr);
|
||||||
|
|
||||||
if (gdk_window_has_impl (window) ||
|
if (gdk_window_has_impl (window) ||
|
||||||
window->alpha == 255)
|
window->alpha == 255)
|
||||||
{
|
{
|
||||||
cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
|
cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
|
||||||
cairo_paint (cr);
|
cairo_paint (cr);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
cairo_set_operator (cr, CAIRO_OPERATOR_OVER);
|
cairo_set_operator (cr, CAIRO_OPERATOR_OVER);
|
||||||
cairo_paint_with_alpha (cr, window->alpha / 255.0);
|
cairo_paint_with_alpha (cr, window->alpha / 255.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
cairo_destroy (cr);
|
cairo_destroy (cr);
|
||||||
cairo_region_destroy (full_clip);
|
cairo_region_destroy (full_clip);
|
||||||
|
Loading…
Reference in New Issue
Block a user