Skip to content

Instantly share code, notes, and snippets.

@Subv
Created February 22, 2015 21:25
Show Gist options
  • Save Subv/b60cb6a84a2ce8c6abf8 to your computer and use it in GitHub Desktop.
Save Subv/b60cb6a84a2ce8c6abf8 to your computer and use it in GitHub Desktop.
//Test Red Input
*input = 0xFFFF0000; //Input
input[1] = 0x00FF0000; //Input
input[2] = 0xFF000000;
*output = 0; //Output
DisplayTransferAndWait(input, output, Dimensions(0x80, 0x80), Dimensions(0x40, 0x40), IN_RGBA8 | OUT_RGBA8 | (1 << 24));
Log(GFX_BOTTOM, Common::FormatString("Got 0: %08X and 1: %08X\r\n", *output, output[1]));
input[1] = 0;
input[2] = 0;
TestEquals(*output, (u32)0x7FFF0000);
TestEquals(output[1], (u32)0x7F000000);
output[1] = 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment