aboutsummaryrefslogtreecommitdiff
path: root/src/bitmap.rs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2021-03-17 12:22:11 +0000
committerAkshay <[email protected]>2021-03-17 12:22:11 +0000
commit83732aed1a41a713cd8790fcebae90aabe78b789 (patch)
treedfa7bd4928e31704c81336263c46b8bc5f153987 /src/bitmap.rs
parent8017f92785f936721cfc4bfa675859dc9aaf649e (diff)
read and write to .obi files
Diffstat (limited to 'src/bitmap.rs')
-rw-r--r--src/bitmap.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bitmap.rs b/src/bitmap.rs
index 128a14e..d02cafb 100644
--- a/src/bitmap.rs
+++ b/src/bitmap.rs
@@ -113,8 +113,7 @@ where
113 } 113 }
114 } 114 }
115 115
116 pub fn new_with(width: u32, height: u32, start: T) -> Self { 116 pub fn new_with(width: u32, height: u32, data: Vec<T>) -> Self {
117 let data = vec![start; (width * height) as usize];
118 Pixmap { 117 Pixmap {
119 width, 118 width,
120 height, 119 height,