mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-18 03:25:55 +00:00
blit tests: ntole() on input pixels #1130
This commit is contained in:
parent
537caa2173
commit
decf622f6c
@ -11,8 +11,8 @@ TEST_CASE("Blitting") {
|
||||
|
||||
SUBCASE("BgraToRgba") {
|
||||
const uint32_t data[8] = {
|
||||
0xffffffff, 0xff0088ff, 0xffff8800, 0xff88ff00,
|
||||
0xffff0088, 0xff8800ff, 0Xff00ff88, 0xff000000,
|
||||
ntole(0xffffffff), ntole(0xff0088ff), ntole(0xffff8800), ntole(0xff88ff00),
|
||||
ntole(0xffff0088), ntole(0xff8800ff), ntole(0xff00ff88), ntole(0xff000000),
|
||||
};
|
||||
struct ncplane_options nopts = {
|
||||
.y = 0,
|
||||
@ -59,8 +59,8 @@ TEST_CASE("Blitting") {
|
||||
|
||||
SUBCASE("BgraToRgbaWithStride") {
|
||||
const uint32_t data[10] = {
|
||||
0xffffffff, 0xff0088ff, 0xffff8800, 0xff88ff00, 0x00000000,
|
||||
0xffff0088, 0xff8800ff, 0xff00ff88, 0xff000000, 0x00000000,
|
||||
ntole(0xffffffff), ntole(0xff0088ff), ntole(0xffff8800), ntole(0xff88ff00), ntole(0x00000000),
|
||||
ntole(0xffff0088), ntole(0xff8800ff), ntole(0xff00ff88), ntole(0xff000000), ntole(0x00000000),
|
||||
};
|
||||
struct ncplane_options nopts = {
|
||||
.y = 0,
|
||||
|
Loading…
Reference in New Issue
Block a user