aboutsummaryrefslogtreecommitdiff
path: root/src/renderer
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2017-11-26 11:48:28 -0800
committerJoe Wilm <joe@jwilm.com>2018-06-02 09:24:38 -0700
commitfd7c1bf6639afc2a141a215f6f64fa299c5a160e (patch)
tree97878de7de9b1858560de52a313ae19230b43157 /src/renderer
parent2fcdd40a81105128b12b9060c257c85e8be32306 (diff)
downloadalacritty-fd7c1bf6639afc2a141a215f6f64fa299c5a160e.tar.gz
alacritty-fd7c1bf6639afc2a141a215f6f64fa299c5a160e.zip
Cleanup style
Diffstat (limited to 'src/renderer')
-rw-r--r--src/renderer/mod.rs16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/renderer/mod.rs b/src/renderer/mod.rs
index 0d474123..ed61f7f5 100644
--- a/src/renderer/mod.rs
+++ b/src/renderer/mod.rs
@@ -1354,11 +1354,11 @@ impl Atlas {
}
/// Insert a RasterizedGlyph into the texture atlas
- pub fn insert(&mut self,
- glyph: &RasterizedGlyph,
- active_tex: &mut u32)
- -> Result<Glyph, AtlasInsertError>
- {
+ pub fn insert(
+ &mut self,
+ glyph: &RasterizedGlyph,
+ active_tex: &mut u32
+ ) -> Result<Glyph, AtlasInsertError> {
if glyph.width > self.width || glyph.height > self.height {
return Err(AtlasInsertError::GlyphTooLarge);
}
@@ -1382,11 +1382,7 @@ impl Atlas {
/// 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;
/// hence, the Result.
- fn insert_inner(&mut self,
- glyph: &RasterizedGlyph,
- active_tex: &mut u32)
- -> Glyph
- {
+ fn insert_inner(&mut self, glyph: &RasterizedGlyph, active_tex: &mut u32) -> Glyph {
let offset_y = self.row_baseline;
let offset_x = self.row_extent;
let height = glyph.height as i32;