mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-26 22:53:15 -04:00
Print the pixel format in the window example
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user