mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-20 03:25:47 +00:00
rust: fix visual
This commit is contained in:
parent
cfb2bf0824
commit
2f3d99e4e7
@ -24,6 +24,7 @@ mod nc;
|
|||||||
mod palette;
|
mod palette;
|
||||||
mod pixel;
|
mod pixel;
|
||||||
mod plane;
|
mod plane;
|
||||||
|
mod visual;
|
||||||
mod types;
|
mod types;
|
||||||
pub use cells::*;
|
pub use cells::*;
|
||||||
pub use channel::*;
|
pub use channel::*;
|
||||||
@ -34,6 +35,7 @@ pub use nc::*;
|
|||||||
pub use palette::*;
|
pub use palette::*;
|
||||||
pub use pixel::*;
|
pub use pixel::*;
|
||||||
pub use plane::*;
|
pub use plane::*;
|
||||||
|
pub use visual::*;
|
||||||
pub use types::*;
|
pub use types::*;
|
||||||
|
|
||||||
// TODO: move tests out
|
// TODO: move tests out
|
||||||
|
@ -259,7 +259,7 @@ pub const SCALE_NONE: Scale = nc::ncscale_e_NCSCALE_NONE;
|
|||||||
/// Maintain aspect ratio
|
/// Maintain aspect ratio
|
||||||
pub const SCALE_SCALE: Scale = nc::ncscale_e_NCSCALE_SCALE;
|
pub const SCALE_SCALE: Scale = nc::ncscale_e_NCSCALE_SCALE;
|
||||||
/// Throw away aspect ratio
|
/// Throw away aspect ratio
|
||||||
pub const SCALE_STRECH: Scale = nc::ncscale_e_NCSCALE_STRETCH;
|
pub const SCALE_STRETCH: Scale = nc::ncscale_e_NCSCALE_STRETCH;
|
||||||
|
|
||||||
///
|
///
|
||||||
pub type DirectMode = nc::ncdirect;
|
pub type DirectMode = nc::ncdirect;
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
//
|
//
|
||||||
// static inline functions total: 1
|
// static inline functions total: 1
|
||||||
// ------------------------------------------ (done / remaining)
|
// ------------------------------------------ (done / remaining)
|
||||||
// (+) done: 0 / 1
|
// (+) done: 1 / 0
|
||||||
// (#) test: 0 / 1
|
// (#) test: 0 / 1
|
||||||
// ------------------------------------------
|
// ------------------------------------------
|
||||||
// ncvisual_default_blitter
|
// ncvisual_default_blitter
|
||||||
@ -40,5 +40,5 @@ pub fn ncvisual_default_blitter(utf8: bool, scale: Scale) -> Blitter {
|
|||||||
}
|
}
|
||||||
return BLIT_2x1;
|
return BLIT_2x1;
|
||||||
}
|
}
|
||||||
BLIT_1x1;
|
BLIT_1x1
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user