mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-03 10:55:57 -04:00
Add GetDrawColor test
This commit is contained in:
parent
a1f2112820
commit
748d70aa08
@ -57,8 +57,13 @@ BEGIN_TEST(int, char*[])
|
||||
PixelInspector pixels(320, 240, 4);
|
||||
|
||||
{
|
||||
// Clear
|
||||
// Clear, draw color
|
||||
renderer.SetDrawColor(1, 2, 3);
|
||||
|
||||
Uint8 r, g, b, a;
|
||||
renderer.GetDrawColor(r, g, b, a);
|
||||
EXPECT_TRUE(r == 1 && g == 2 && b == 3 && a == 255);
|
||||
|
||||
renderer.Clear();
|
||||
pixels.Retrieve(renderer);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user