projects
/
projects
/
chimara
/
chimara.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Start of image cache implementation... breaks image functionality.
[projects/chimara/chimara.git]
/
libchimara
/
graphics.h
diff --git
a/libchimara/graphics.h
b/libchimara/graphics.h
index 34cde77db454609e5c49b4435e8251fd730b192e..183405ee68145654e48e9520ebe5e6e7a994708b 100644
(file)
--- a/
libchimara/graphics.h
+++ b/
libchimara/graphics.h
@@
-9,11
+9,17
@@
#include "resource.h"
#include "window.h"
#include "resource.h"
#include "window.h"
+#define IMAGE_CACHE_MAX_NUM 10
+#define IMAGE_CACHE_MAX_SIZE 5242880
+
struct image_info {
guint32 resource_number;
gint width, height;
struct image_info {
guint32 resource_number;
gint width, height;
+ GdkPixbuf* pixbuf;
+ gboolean scaled;
};
void on_graphics_size_allocate(GtkWidget *widget, GtkAllocation *allocation, winid_t win);
};
void on_graphics_size_allocate(GtkWidget *widget, GtkAllocation *allocation, winid_t win);
+void clear_image_cache(struct image_info *data, gpointer user_data);
#endif
#endif