diff options
author | Alexander Larsson <alexl@redhat.com> | 2010-04-19 16:31:45 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2010-04-23 16:41:42 +0200 |
commit | 4f5a09a73d4659e6aaf6537bf9c582df7fe39f00 (patch) | |
tree | 611f839c79fffc4583ebd27199d2f7695718777b /client/display_channel.h | |
parent | 774e5bd36f4fc156dd744a455ff7ddda27441568 (diff) | |
download | spice-4f5a09a73d4659e6aaf6537bf9c582df7fe39f00.tar.gz spice-4f5a09a73d4659e6aaf6537bf9c582df7fe39f00.tar.xz spice-4f5a09a73d4659e6aaf6537bf9c582df7fe39f00.zip |
Make each surface its own depth/format
Surface creation now specifies the exact format, not only the bit depth
of each surface which is used for rendering.
Additionally we now actually store the surfaces in that format, instead
of converting everything to 32bpp when drawing or e.g. handling palettes.
Diffstat (limited to 'client/display_channel.h')
-rw-r--r-- | client/display_channel.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/display_channel.h b/client/display_channel.h index a5761b35..e864bfc8 100644 --- a/client/display_channel.h +++ b/client/display_channel.h @@ -143,12 +143,12 @@ private: #endif void destroy_canvas(int surface_id); void create_canvas(int surface_id, const std::vector<int>& canvas_type, int width, int height, - int depth); + uint32_t format); void destroy_strams(); void update_cursor(); - void create_primary_surface(int width, int height, int depth); - void create_surface(int surface_id, int width, int height, int depth); + void create_primary_surface(int width, int height, uint32_t format); + void create_surface(int surface_id, int width, int height, uint32_t format); void destroy_primary_surface(); void destroy_surface(int surface_id); @@ -199,7 +199,7 @@ private: bool _mark; int _x_res; int _y_res; - int _depth; + uint32_t _format; #ifdef USE_OGL RenderType _rendertype; #endif |