API for changing the background image of OS windows

Uses reference counting
This commit is contained in:
Kovid Goyal
2020-02-01 09:17:41 +05:30
parent 0fa3cec61f
commit 8116ee015a
5 changed files with 107 additions and 46 deletions

View File

@@ -59,7 +59,7 @@ typedef struct {
uint32_t texture_id;
unsigned int height, width;
uint8_t* bitmap;
bool load_failed, needs_free;
uint32_t refcnt;
} BackgroundImage;
typedef struct {