blit tests: ntole() on input pixels #1130

pull/1132/head
nick black 4 years ago
parent 537caa2173
commit decf622f6c
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -11,8 +11,8 @@ TEST_CASE("Blitting") {
SUBCASE("BgraToRgba") { SUBCASE("BgraToRgba") {
const uint32_t data[8] = { const uint32_t data[8] = {
0xffffffff, 0xff0088ff, 0xffff8800, 0xff88ff00, ntole(0xffffffff), ntole(0xff0088ff), ntole(0xffff8800), ntole(0xff88ff00),
0xffff0088, 0xff8800ff, 0Xff00ff88, 0xff000000, ntole(0xffff0088), ntole(0xff8800ff), ntole(0xff00ff88), ntole(0xff000000),
}; };
struct ncplane_options nopts = { struct ncplane_options nopts = {
.y = 0, .y = 0,
@ -59,8 +59,8 @@ TEST_CASE("Blitting") {
SUBCASE("BgraToRgbaWithStride") { SUBCASE("BgraToRgbaWithStride") {
const uint32_t data[10] = { const uint32_t data[10] = {
0xffffffff, 0xff0088ff, 0xffff8800, 0xff88ff00, 0x00000000, ntole(0xffffffff), ntole(0xff0088ff), ntole(0xffff8800), ntole(0xff88ff00), ntole(0x00000000),
0xffff0088, 0xff8800ff, 0xff00ff88, 0xff000000, 0x00000000, ntole(0xffff0088), ntole(0xff8800ff), ntole(0xff00ff88), ntole(0xff000000), ntole(0x00000000),
}; };
struct ncplane_options nopts = { struct ncplane_options nopts = {
.y = 0, .y = 0,

Loading…
Cancel
Save