aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index e5f9e0b3..733c4c6d 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -56,13 +56,14 @@ static INIT_LIST: &'static str = "abcdefghijklmnopqrstuvwxyz\
type GlyphCache = HashMap<char, renderer::Glyph>;
+#[derive(Debug)]
struct TermProps {
+ width: f32,
+ height: f32,
cell_width: f32,
- sep_x: f32,
cell_height: f32,
+ sep_x: f32,
sep_y: f32,
- height: f32,
- width: f32,
}
fn main() {
@@ -189,6 +190,15 @@ fn main() {
width: width as f32,
};
+ let props = TermProps {
+ cell_width: cell_width as f32,
+ cell_height: cell_height as f32,
+ sep_x: sep_x as f32,
+ sep_y: sep_y as f32,
+ height: height as f32,
+ width: width as f32,
+ };
+
{
let _sampler = meter.sampler();