diff options
author | Alexander Larsson <alexl@redhat.com> | 2010-04-21 12:03:06 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2010-04-23 16:36:35 +0200 |
commit | 2d6fbde89b08b7dd4a2050c71fe6663ea8e9c2d9 (patch) | |
tree | 7a21036fa2fe975dac3462a075ee968eb3ec267f /client/x11 | |
parent | 98d91203c5d2f6f7249f38941466857b6a566f5d (diff) | |
download | spice-2d6fbde89b08b7dd4a2050c71fe6663ea8e9c2d9.tar.gz spice-2d6fbde89b08b7dd4a2050c71fe6663ea8e9c2d9.tar.xz spice-2d6fbde89b08b7dd4a2050c71fe6663ea8e9c2d9.zip |
Move RedPixmap::Format to RedDrawable::Format
We need to know the format for other drawables too (like for instance
the native format of a window), so we're pushing this down.
This changes a bunch of references to be RedDrawable::, but not all.
The the old RedPixmap:: references still work, but will be phased out.
Diffstat (limited to 'client/x11')
-rw-r--r-- | client/x11/red_pixmap_gl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/x11/red_pixmap_gl.cpp b/client/x11/red_pixmap_gl.cpp index a3096517..7c859665 100644 --- a/client/x11/red_pixmap_gl.cpp +++ b/client/x11/red_pixmap_gl.cpp @@ -30,7 +30,7 @@ #include "red_window_p.h" -RedPixmapGL::RedPixmapGL(int width, int height, RedPixmap::Format format, +RedPixmapGL::RedPixmapGL(int width, int height, RedDrawable::Format format, bool top_bottom, RedWindow *win, RenderType rendertype) : RedPixmap(width, height, format, top_bottom) @@ -41,7 +41,7 @@ RedPixmapGL::RedPixmapGL(int width, int height, RedPixmap::Format format, Win xwin; //GLint max_texture_size; - ASSERT(format == RedPixmap::ARGB32 || format == RedPixmap::RGB32 || format == RedPixmap::A1); + ASSERT(format == RedDrawable::ARGB32 || format == RedDrawable::RGB32 || format == RedDrawable::A1); ASSERT(sizeof(RedDrawable_p) <= PIXELES_SOURCE_OPAQUE_SIZE); ((PixelsSource_p*)get_opaque())->type = PIXELS_SOURCE_TYPE_GL_TEXTURE; |