Skip to content

Commit

Permalink
Core (Tests): Fix wrong argument order in calls to Video::get_pixel_p…
Browse files Browse the repository at this point in the history
…tr().
  • Loading branch information
kaixiong committed Mar 31, 2023
1 parent 8f94ac0 commit 156039a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libvisual/tests/video_test/video_blit_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ namespace
actual->blit (source, 0, 0, true);

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

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

0 comments on commit 156039a

Please sign in to comment.