Properly release resources used by bgimage
Also allow per OS Window bg images in the future
This commit is contained in:
+2
-2
@@ -144,7 +144,7 @@ typedef struct {
|
||||
int viewport_width, viewport_height, window_width, window_height;
|
||||
double viewport_x_ratio, viewport_y_ratio;
|
||||
Tab *tabs;
|
||||
BackgroundImage *bgimage;
|
||||
BackgroundImage bgimage;
|
||||
unsigned int active_tab, num_tabs, capacity, last_active_tab, last_num_tabs, last_active_window_id;
|
||||
bool focused_at_last_render, needs_render;
|
||||
ScreenRenderData tab_bar_render_data;
|
||||
@@ -178,7 +178,7 @@ typedef struct {
|
||||
|
||||
id_type os_window_id_counter, tab_id_counter, window_id_counter;
|
||||
PyObject *boss;
|
||||
BackgroundImage *bgimage;
|
||||
BackgroundImage bgimage;
|
||||
OSWindow *os_windows;
|
||||
size_t num_os_windows, capacity;
|
||||
OSWindow *callback_os_window;
|
||||
|
||||
Reference in New Issue
Block a user