blob: 359e8963eedda27a1aee67b8d06eb0c4fa06d066 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
From: Alexander Tsoy <alexander@tsoy.me>
Subject: Fix vector size in painter test.
Upstream-Status: Submitted
--- 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)
|