Remove scheduled redraws for destroyed windows
This commit is contained in:
parent
26dbb7a602
commit
a6179250d5
|
@ -3781,6 +3781,7 @@ void gui_window_destroy(struct gui_window *g)
|
|||
}
|
||||
|
||||
ami_plot_release_pens(&g->shared->shared_pens);
|
||||
ami_schedule_redraw_remove(g->shared);
|
||||
|
||||
DisposeObject(g->shared->objects[OID_MAIN]);
|
||||
ami_gui_appicon_remove(g->shared);
|
||||
|
@ -3911,6 +3912,11 @@ void ami_schedule_redraw(struct gui_window_2 *gwin, bool full_redraw)
|
|||
gwin->redraw_scheduled = true;
|
||||
}
|
||||
|
||||
static void ami_schedule_redraw_remove(struct gui_window_2 *gwin)
|
||||
{
|
||||
schedule_remove(ami_redraw_callback, gwin);
|
||||
}
|
||||
|
||||
static void ami_do_redraw_tiled(struct gui_window_2 *gwin, bool busy,
|
||||
int left, int top, int width, int height,
|
||||
int sx, int sy, struct IBox *bbox, struct redraw_context *ctx)
|
||||
|
|
Loading…
Reference in New Issue