aboutsummaryrefslogtreecommitdiff
path: root/src/bitmap.rs
diff options
context:
space:
mode:
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,