mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-09-07 22:36:49 -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);
|
PixelInspector pixels(320, 240, 4);
|
||||||
|
|
||||||
{
|
{
|
||||||
// Clear
|
// Clear, draw color
|
||||||
renderer.SetDrawColor(1, 2, 3);
|
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();
|
renderer.Clear();
|
||||||
pixels.Retrieve(renderer);
|
pixels.Retrieve(renderer);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user