From ba8f277d1d7b12014d6327980b81331c9b82b0e4 Mon Sep 17 00:00:00 2001 From: Alexander Tsoy Date: Mon, 23 Jun 2025 07:55:52 +0200 Subject: Fix vector size in painter test. --- test/paintertest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/paintertest.cc') diff --git a/test/paintertest.cc b/test/paintertest.cc index 5a1c44a..10b96dc 100644 --- a/test/paintertest.cc +++ b/test/paintertest.cc @@ -91,7 +91,7 @@ public: has_alpha = alpha; image_data.resize(_width * _height); - image_data_raw.resize(_width * _height); + image_data_raw.resize(4 * _width * _height); // Store x and y coordinates as red and green colour components for(std::uint8_t x = 0; x < _width; ++x) -- cgit v1.2.3