Fixed a bug
parent
952d03ee10
commit
7655f1bdad
|
@ -4,9 +4,9 @@ Bitmap::Bitmap(size_t w, size_t h) {
|
||||||
this->width = w;
|
this->width = w;
|
||||||
this->height = h;
|
this->height = h;
|
||||||
|
|
||||||
this->data.reserve(h);
|
this->data.resize(h);
|
||||||
for (size_t r = 0; r < h; r++) {
|
for (size_t r = 0; r < h; r++) {
|
||||||
data[r].reserve(w);
|
data[r].resize(w);
|
||||||
}
|
}
|
||||||
|
|
||||||
clear();
|
clear();
|
||||||
|
|
Loading…
Reference in New Issue