mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
egl-configs: print hex too
This commit is contained in:
parent
7e7316e766
commit
1f8d04b8e1
1 changed files with 5 additions and 1 deletions
|
@ -78,7 +78,11 @@ unsafe fn run() {
|
||||||
] {
|
] {
|
||||||
let mut value = -1;
|
let mut value = -1;
|
||||||
check!(GetConfigAttrib(display, config, attr as i32, &mut value));
|
check!(GetConfigAttrib(display, config, attr as i32, &mut value));
|
||||||
println!(" {} = {}", attr_name, value)
|
if value < 10 {
|
||||||
|
println!(" {}\t = {}", attr_name, value)
|
||||||
|
} else {
|
||||||
|
println!(" {}\t= {} = 0x{:x}", attr_name, value, value)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue