remove some bad comments
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
This commit is contained in:
parent
f3cb2fe15a
commit
37b1f86fa9
2 changed files with 7 additions and 8 deletions
|
|
@ -134,7 +134,6 @@ void MwLLCairoBackSetup(struct _MwLLCairo* cairo, MwU8* data, MwU32 width, MwU32
|
||||||
cairo->back_cairo = cairo_create(cairo->back_cs);
|
cairo->back_cairo = cairo_create(cairo->back_cs);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Pointers are cleared so that destroying twice (or before any setup) is harmless; cairo ignores NULL. */
|
|
||||||
void MwLLCairoFrontDestroy(struct _MwLLCairo* cairo) {
|
void MwLLCairoFrontDestroy(struct _MwLLCairo* cairo) {
|
||||||
cairo_destroy(cairo->front_cairo);
|
cairo_destroy(cairo->front_cairo);
|
||||||
cairo_destroy(cairo->front_cairo_back);
|
cairo_destroy(cairo->front_cairo_back);
|
||||||
|
|
@ -143,6 +142,7 @@ void MwLLCairoFrontDestroy(struct _MwLLCairo* cairo) {
|
||||||
cairo_surface_destroy(cairo->front_cs_back);
|
cairo_surface_destroy(cairo->front_cs_back);
|
||||||
cairo_surface_destroy(cairo->frontbuffer_cs);
|
cairo_surface_destroy(cairo->frontbuffer_cs);
|
||||||
|
|
||||||
|
/* set all to null so that cairo ignores future destroys */
|
||||||
cairo->front_cairo = NULL;
|
cairo->front_cairo = NULL;
|
||||||
cairo->front_cairo_back = NULL;
|
cairo->front_cairo_back = NULL;
|
||||||
cairo->frontbuffer_cairo = NULL;
|
cairo->frontbuffer_cairo = NULL;
|
||||||
|
|
|
||||||
|
|
@ -990,7 +990,6 @@ static void widget_setup(MwLL r, MwLL parent, int x, int y, int width, int heigh
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* widget_setup runs again on every state change, drop the regions from the last one */
|
|
||||||
if(r->wayland.region) wl_region_destroy(r->wayland.region);
|
if(r->wayland.region) wl_region_destroy(r->wayland.region);
|
||||||
if(r->wayland.o_region) wl_region_destroy(r->wayland.o_region);
|
if(r->wayland.o_region) wl_region_destroy(r->wayland.o_region);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue