]> git.proxmox.com Git - spiceterm.git/blobdiff - spiceterm.h
use correct raster on resize
[spiceterm.git] / spiceterm.h
index 0fb3f3c7ae7f11d8b1cedc67750ff179ab7f0041..729ae3df69a23efafead09178a20015f2e0ddaa7 100644 (file)
@@ -20,12 +20,17 @@ typedef struct TextCell {
     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;
@@ -53,6 +58,9 @@ struct SpiceScreen {
     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);