mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-18 13:55:23 -05:00
Move copypasta & font to 2018, fix windows specific code
This commit is contained in:
parent
0fd6a6830a
commit
a5aef17d8f
4 changed files with 11 additions and 11 deletions
|
@ -85,4 +85,4 @@ pub use macos::{Clipboard, Error};
|
|||
#[cfg(windows)]
|
||||
mod windows;
|
||||
#[cfg(windows)]
|
||||
pub use windows::{Clipboard, Error};
|
||||
pub use crate::windows::{Clipboard, Error};
|
||||
|
|
|
@ -58,7 +58,7 @@ pub use ft::{Error, FreeTypeRasterizer as Rasterizer};
|
|||
#[cfg(windows)]
|
||||
pub mod rusttype;
|
||||
#[cfg(windows)]
|
||||
pub use rusttype::{Error, RustTypeRasterizer as Rasterizer};
|
||||
pub use crate::rusttype::{Error, RustTypeRasterizer as Rasterizer};
|
||||
|
||||
// If target is macos, reexport everything from darwin
|
||||
#[cfg(target_os = "macos")]
|
||||
|
@ -348,13 +348,13 @@ pub trait Rasterize {
|
|||
Self: Sized;
|
||||
|
||||
/// Get `Metrics` for the given `FontKey`
|
||||
fn metrics(&self, FontKey, Size) -> Result<Metrics, Self::Err>;
|
||||
fn metrics(&self, _: FontKey, _: Size) -> Result<Metrics, Self::Err>;
|
||||
|
||||
/// Load the font described by `FontDesc` and `Size`
|
||||
fn load_font(&mut self, &FontDesc, Size) -> Result<FontKey, Self::Err>;
|
||||
fn load_font(&mut self, _: &FontDesc, _: Size) -> Result<FontKey, Self::Err>;
|
||||
|
||||
/// Rasterize the glyph described by `GlyphKey`.
|
||||
fn get_glyph(&mut self, GlyphKey) -> Result<RasterizedGlyph, Self::Err>;
|
||||
fn get_glyph(&mut self, _: GlyphKey) -> Result<RasterizedGlyph, Self::Err>;
|
||||
|
||||
/// Update the Rasterizer's DPI factor
|
||||
fn update_dpr(&mut self, device_pixel_ratio: f32);
|
||||
|
|
|
@ -11,7 +11,7 @@ pub struct RustTypeRasterizer {
|
|||
dpi_ratio: f32,
|
||||
}
|
||||
|
||||
impl ::Rasterize for RustTypeRasterizer {
|
||||
impl crate::Rasterize for RustTypeRasterizer {
|
||||
type Err = Error;
|
||||
|
||||
fn new(device_pixel_ratio: f32, _: bool) -> Result<RustTypeRasterizer, Error> {
|
||||
|
|
|
@ -31,11 +31,11 @@ use winapi::shared::winerror::WAIT_TIMEOUT;
|
|||
use winpty::{ConfigFlags, MouseMode, SpawnConfig, SpawnFlags, Winpty};
|
||||
use winpty::Config as WinptyConfig;
|
||||
|
||||
use config::{Config, Shell};
|
||||
use display::OnResize;
|
||||
use cli::Options;
|
||||
use tty::EventedReadWrite;
|
||||
use term::SizeInfo;
|
||||
use crate::config::{Config, Shell};
|
||||
use crate::display::OnResize;
|
||||
use crate::cli::Options;
|
||||
use crate::tty::EventedReadWrite;
|
||||
use crate::term::SizeInfo;
|
||||
|
||||
/// Handle to the winpty agent process. Required so we know when it closes.
|
||||
static mut HANDLE: *mut c_void = 0usize as *mut c_void;
|
||||
|
|
Loading…
Reference in a new issue