Fixed a bug

master
Mark 2022-06-24 21:27:49 -07:00
parent 952d03ee10
commit 7655f1bdad
Signed by: Mark
GPG Key ID: AD62BB059C2AAEE4
1 changed files with 2 additions and 2 deletions

View File

@ -4,9 +4,9 @@ Bitmap::Bitmap(size_t w, size_t h) {
this->width = w;
this->height = h;
this->data.reserve(h);
this->data.resize(h);
for (size_t r = 0; r < h; r++) {
data[r].reserve(w);
data[r].resize(w);
}
clear();