Skip to content

Commit 156039a

Browse files
committed
Core (Tests): Fix wrong argument order in calls to Video::get_pixel_ptr().
1 parent 8f94ac0 commit 156039a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libvisual/tests/video_test/video_blit_test.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ namespace
3434
actual->blit (source, 0, 0, true);
3535

3636
for (int y = 0; y < test_height; y++) {
37-
auto source_pixel = static_cast<uint8_t const*> (source->get_pixel_ptr (y, 0));
38-
auto target_pixel = static_cast<uint8_t const*> (target->get_pixel_ptr (y, 0));
39-
auto actual_pixel = static_cast<uint8_t const*> (actual->get_pixel_ptr (y, 0));
37+
auto source_pixel = static_cast<uint8_t const*> (source->get_pixel_ptr (0, y));
38+
auto target_pixel = static_cast<uint8_t const*> (target->get_pixel_ptr (0, y));
39+
auto actual_pixel = static_cast<uint8_t const*> (actual->get_pixel_ptr (0, y));
4040

4141
for (int x = 0; x < test_width; x++) {
4242
LV_TEST_ASSERT (actual_pixel[3] == target_pixel[3]);

0 commit comments

Comments
 (0)