Simplify plane_resize function
This commit is contained in:
parent
64f921eff7
commit
f5be463c05
1 changed files with 1 additions and 3 deletions
2
visor.c
2
visor.c
|
@ -357,9 +357,7 @@ void blit_plane(GtkDrawingArea *da, cairo_t *cr, int width, int height, gpointer
|
||||||
|
|
||||||
void plane_resize(GtkWidget *widget)
|
void plane_resize(GtkWidget *widget)
|
||||||
{
|
{
|
||||||
if (!surface) {
|
|
||||||
create_surface(widget);
|
create_surface(widget);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void create_surface(GtkWidget *widget)
|
void create_surface(GtkWidget *widget)
|
||||||
|
|
Loading…
Add table
Reference in a new issue