mirror of
https://gitlab.gnome.org/GNOME/libmks.git
synced 2025-04-14 08:27:16 +00:00
lib: remove debug code
This commit is contained in:
parent
2efcaed79a
commit
de3505e864
@ -287,8 +287,6 @@ mks_paintable_listener_update (MksPaintable *self,
|
|||||||
guint8 *data;
|
guint8 *data;
|
||||||
cairo_format_t format;
|
cairo_format_t format;
|
||||||
gsize data_len;
|
gsize data_len;
|
||||||
static int counter;
|
|
||||||
char name[32];
|
|
||||||
|
|
||||||
g_assert (MKS_IS_PAINTABLE (self));
|
g_assert (MKS_IS_PAINTABLE (self));
|
||||||
g_assert (G_IS_DBUS_METHOD_INVOCATION (invocation));
|
g_assert (G_IS_DBUS_METHOD_INVOCATION (invocation));
|
||||||
@ -341,8 +339,6 @@ mks_paintable_listener_update (MksPaintable *self,
|
|||||||
}
|
}
|
||||||
|
|
||||||
source = cairo_image_surface_create_for_data (data, format, width, height, stride);
|
source = cairo_image_surface_create_for_data (data, format, width, height, stride);
|
||||||
g_snprintf (name, sizeof name, "update-%u.png", counter++ % 10);
|
|
||||||
cairo_surface_write_to_png (source, name);
|
|
||||||
cr = mks_cairo_framebuffer_update (self->framebuffer, x, y, width, height);
|
cr = mks_cairo_framebuffer_update (self->framebuffer, x, y, width, height);
|
||||||
cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
|
cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
|
||||||
cairo_set_source_surface (cr, source, 0, 0);
|
cairo_set_source_surface (cr, source, 0, 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user