TextAttributes attrib;
} TextCell;
-#define COMMANDS_SIZE 1024
+#define COMMANDS_SIZE (1024*10)
#define MAX_HEIGHT 2048
#define MAX_WIDTH 2048
typedef struct SpiceScreen SpiceScreen;
+typedef struct CachedImage {
+ uint8_t *bitmap;
+ int cache_id;
+} CachedImage;
+
struct SpiceScreen {
SpiceCoreInterface *core;
SpiceServer *server;
int commands_start;
struct QXLCommandExt* commands[COMMANDS_SIZE];
+ //cache for glyphs bitmaps
+ GHashTable *image_cache;
+
// callbacks
void (*on_client_connected)(SpiceScreen *spice_screen);
void (*on_client_disconnected)(SpiceScreen *spice_screen);