aboutsummaryrefslogtreecommitdiff
path: root/src/renderer
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2016-02-27 13:15:42 -0800
committerJoe Wilm <joe@jwilm.com>2016-02-27 13:16:40 -0800
commit97c1a17bf1f9aa0740656becb4e4b2af64e5a88a (patch)
tree1cd541b804ebde07879c5af5c7cf51b5ea014c1e /src/renderer
parent77cfb7b5cd6ca7c6762d17371d0dcfadb8cf160f (diff)
downloadalacritty-97c1a17bf1f9aa0740656becb4e4b2af64e5a88a.tar.gz
alacritty-97c1a17bf1f9aa0740656becb4e4b2af64e5a88a.zip
Cleanup PackedVertex initialization
Diffstat (limited to 'src/renderer')
-rw-r--r--src/renderer/mod.rs27
1 files changed, 6 insertions, 21 deletions
diff --git a/src/renderer/mod.rs b/src/renderer/mod.rs
index e7618939..b84ed1ee 100644
--- a/src/renderer/mod.rs
+++ b/src/renderer/mod.rs
@@ -102,27 +102,12 @@ impl QuadRenderer {
let rect = get_rect(glyph, x, y);
// Top right, Bottom right, Bottom left, Top left
- let packed = [PackedVertex {
- x: rect.max_x(),
- y: rect.max_y(),
- u: 1.0,
- v: 0.0,
- }, PackedVertex {
- x: rect.max_x(),
- y: rect.min_y(),
- u: 1.0,
- v: 1.0,
- }, PackedVertex {
- x: rect.min_x(),
- y: rect.min_y(),
- u: 0.0,
- v: 1.0,
- }, PackedVertex {
- x: rect.min_x(),
- y: rect.max_y(),
- u: 0.0,
- v: 0.0,
- }];
+ let packed = [
+ PackedVertex { x: rect.max_x(), y: rect.max_y(), u: 1.0, v: 0.0, },
+ PackedVertex { x: rect.max_x(), y: rect.min_y(), u: 1.0, v: 1.0, },
+ PackedVertex { x: rect.min_x(), y: rect.min_y(), u: 0.0, v: 1.0, },
+ PackedVertex { x: rect.min_x(), y: rect.max_y(), u: 0.0, v: 0.0, },
+ ];
unsafe {
bind_mask_texture(glyph.tex_id);