diff options
author | Alexander Larsson <alexl@redhat.com> | 2010-04-21 12:31:23 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2010-04-23 16:36:35 +0200 |
commit | 5c2d9a3e321eca7f93f69a5cfc8ff240c8992e13 (patch) | |
tree | 8fba57c3f98f6301da4e558582467030a60d8f4c /client/x11 | |
parent | cfa250caa24593b24e13290bf7c6216b871b8c7a (diff) | |
download | spice-5c2d9a3e321eca7f93f69a5cfc8ff240c8992e13.tar.gz spice-5c2d9a3e321eca7f93f69a5cfc8ff240c8992e13.tar.xz spice-5c2d9a3e321eca7f93f69a5cfc8ff240c8992e13.zip |
Add RedDrawable::Format get_format()
This is useful because we can e.g. create pixmaps in the same format as
a window.
Diffstat (limited to 'client/x11')
-rw-r--r-- | client/x11/red_window.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/client/x11/red_window.cpp b/client/x11/red_window.cpp index 6de86bf2..21567275 100644 --- a/client/x11/red_window.cpp +++ b/client/x11/red_window.cpp @@ -1930,6 +1930,11 @@ int RedWindow::get_screen_num() return _screen; } +RedDrawable::Format RedWindow::get_format() +{ + return XPlatform::get_screen_format(_screen); +} + void RedWindow::set_type_gl() { PixelsSource_p *pix_source = (PixelsSource_p*)get_opaque(); |