From 05c24b39cc993572c5ecebf4be35e8b0a66ee86e Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Mon, 4 May 2015 09:23:43 +0200 Subject: Print the pixel format in the `window` example --- examples/window.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'examples') diff --git a/examples/window.rs b/examples/window.rs index 1d3b615..4077399 100644 --- a/examples/window.rs +++ b/examples/window.rs @@ -24,6 +24,8 @@ fn main() { window.set_window_resize_callback(Some(resize_callback as fn(u32, u32))); unsafe { window.make_current() }; + println!("Pixel format of the window: {:?}", window.get_pixel_format()); + let context = support::load(&window); while !window.is_closed() { -- cgit v1.2.3