mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-02 09:40:15 +00:00
Visual tests: complete endianness fixes #1130
This commit is contained in:
parent
6915e44cca
commit
b99e6b8bc6
@ -301,8 +301,8 @@ TEST_CASE("Visual") {
|
|||||||
uint64_t channels;
|
uint64_t channels;
|
||||||
char* egc = notcurses_at_yx(nc_, y, x, &stylemask, &channels);
|
char* egc = notcurses_at_yx(nc_, y, x, &stylemask, &channels);
|
||||||
REQUIRE(nullptr != egc);
|
REQUIRE(nullptr != egc);
|
||||||
CHECK((rgba[y * 2 * DIMX + x] & 0xffffff) == channels_bg_rgb(channels));
|
CHECK((htole(rgba[y * 2 * DIMX + x]) & 0xffffff) == channels_bg_rgb(channels));
|
||||||
CHECK((rgba[(y * 2 + 1) * DIMX + x] & 0xffffff) == channels_fg_rgb(channels));
|
CHECK((htole(rgba[(y * 2 + 1) * DIMX + x]) & 0xffffff) == channels_fg_rgb(channels));
|
||||||
free(egc);
|
free(egc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user