1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-18 13:55:23 -05:00

Cleanup style

This commit is contained in:
Joe Wilm 2017-11-26 11:48:28 -08:00
parent 7f2b398ad2
commit d0a58c54c5

View file

@ -1348,11 +1348,11 @@ impl Atlas {
} }
/// Insert a RasterizedGlyph into the texture atlas /// Insert a RasterizedGlyph into the texture atlas
pub fn insert(&mut self, pub fn insert(
glyph: &RasterizedGlyph, &mut self,
active_tex: &mut u32) glyph: &RasterizedGlyph,
-> Result<Glyph, AtlasInsertError> active_tex: &mut u32
{ ) -> Result<Glyph, AtlasInsertError> {
if glyph.width > self.width || glyph.height > self.height { if glyph.width > self.width || glyph.height > self.height {
return Err(AtlasInsertError::GlyphTooLarge); return Err(AtlasInsertError::GlyphTooLarge);
} }
@ -1376,11 +1376,7 @@ impl Atlas {
/// Internal function for use once atlas has been checked for space. GL /// Internal function for use once atlas has been checked for space. GL
/// errors could still occur at this point if we were checking for them; /// errors could still occur at this point if we were checking for them;
/// hence, the Result. /// hence, the Result.
fn insert_inner(&mut self, fn insert_inner(&mut self, glyph: &RasterizedGlyph, active_tex: &mut u32) -> Glyph {
glyph: &RasterizedGlyph,
active_tex: &mut u32)
-> Glyph
{
let offset_y = self.row_baseline; let offset_y = self.row_baseline;
let offset_x = self.row_extent; let offset_x = self.row_extent;
let height = glyph.height as i32; let height = glyph.height as i32;