about summary refs log tree commit diff
path: root/src/types/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/types/mod.rs')
-rw-r--r--src/types/mod.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/types/mod.rs b/src/types/mod.rs
index 1e86fb369e86..e656048e873c 100644
--- a/src/types/mod.rs
+++ b/src/types/mod.rs
@@ -24,6 +24,12 @@ pub struct Dimensions {
 pub const ZERO_DIMENSIONS: Dimensions = Dimensions { w: 0, h: 0 };
 pub const UNIT_DIMENSIONS: Dimensions = Dimensions { w: 1, h: 1 };
 
+impl Default for Dimensions {
+    fn default() -> Self {
+        Dimensions { w: 80, h: 20 }
+    }
+}
+
 impl ops::Sub<Dimensions> for Dimensions {
     type Output = Dimensions;
     fn sub(self, dims: Dimensions) -> Dimensions {