From 5c2d9a3e321eca7f93f69a5cfc8ff240c8992e13 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Wed, 21 Apr 2010 12:31:23 +0200 Subject: Add RedDrawable::Format get_format() This is useful because we can e.g. create pixmaps in the same format as a window. --- client/x11/red_window.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'client/x11/red_window.cpp') 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(); -- cgit