rust: deprecate ncvisual_default_blitter

pull/1259/head
joseLuís 4 years ago
parent 05d5c36622
commit e75432fcf2

@ -687,6 +687,8 @@ pub use ffi::{
notcurses_lex_scalemode,
notcurses_linesigs_disable,
notcurses_linesigs_enable,
// Waiting for: https://github.com/dankamongmen/notcurses/issues/1114
// notcurses_media_defblitter,
notcurses_mouse_disable,
notcurses_mouse_enable,
notcurses_palette_size,

@ -65,6 +65,11 @@ pub const NCVISUAL_OPTION_NODEGRADE: u32 = crate::bindings::ffi::NCVISUAL_OPTION
/// NCBLIT_3x2 is better image quality, especially for large images, but
/// it's not the general default because it doesn't preserve aspect ratio.
/// NCSCALE_STRETCH throws away aspect ratio, and can safely use NCBLIT_3x2.
#[deprecated(
since = "2.1.2",
note = "please use `notcurses_media_defblitter` instead"
)]
// Waiting for: https://github.com/dankamongmen/notcurses/issues/1114
pub fn ncvisual_default_blitter(utf8: bool, scale: NcScale) -> NcBlitter {
if utf8 {
if scale == NCSCALE_STRETCH {

Loading…
Cancel
Save