tcod-rs
tcod-rs copied to clipboard
get_default_foreground not wrapped?
Unless I'm missing something, console.rs wraps get_default_background but not get_default_foreground.
I'd think the fix would be something like adding:
fn get_default_foreground(&mut self) -> Color {
unsafe {
FromNative::from_native(
ffi::TCOD_console_get_default_foreground(*self.as_native()))
}
}
to console.rs since it looks like everything else is there at the c level.
Yep, looks like it!
Would you mind opening a pull request? That snippet looks good to me.
Will do, one sec....