summaryrefslogtreecommitdiffstats
path: root/src/renderer/mod.rs
diff options
context:
space:
mode:
authorAaron Williamson <guitarfanman@gmail.com>2017-04-26 20:28:18 -0600
committerJoe Wilm <jwilm@users.noreply.github.com>2017-05-01 08:52:22 -0700
commitf06be732a231c218104a538abef670835d3a68b9 (patch)
tree6406bcebaef016c300cd9e92a0022b16c42ed3a9 /src/renderer/mod.rs
parent0a1dc56bcf0b125cfd79787148d219d9e38f85b8 (diff)
Combine FontOffset and GlyphOffset structs into Delta struct
The two structs are very similar, so there is no reason for them to be separate. Instead combine them into a single Delta struct, which can be used to shift a point in a two dimensional plane.
Diffstat (limited to 'src/renderer/mod.rs')
-rw-r--r--src/renderer/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/renderer/mod.rs b/src/renderer/mod.rs
index 2ec196f9..48354018 100644
--- a/src/renderer/mod.rs
+++ b/src/renderer/mod.rs
@@ -28,7 +28,7 @@ use gl;
use index::{Line, Column, RangeInclusive};
use notify::{Watcher as WatcherApi, RecommendedWatcher as Watcher, op};
-use config::{Config, GlyphOffset};
+use config::{Config, Delta};
use term::{self, cell, RenderableCell};
use window::{Size, Pixels};
@@ -156,7 +156,7 @@ pub struct GlyphCache {
font_size: font::Size,
/// glyph offset
- glyph_offset: GlyphOffset,
+ glyph_offset: Delta,
}
impl GlyphCache {