From d99a3f4a96b754a788c4a147be27dd212d90f743 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 3 Aug 2013 23:02:14 +0300 Subject: improve software A,S dye speed. --- src/resources/dye_unittest.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/resources/dye_unittest.cc') diff --git a/src/resources/dye_unittest.cc b/src/resources/dye_unittest.cc index 08120f641..10059ca34 100644 --- a/src/resources/dye_unittest.cc +++ b/src/resources/dye_unittest.cc @@ -124,7 +124,7 @@ TEST(Dye, replaceSColor1) data[1] = 0x02; data[2] = 0x03; data[3] = 0x10; - palette.replaceSColor(&data[0]); + palette.replaceSColor(reinterpret_cast(&data[0]), 1); EXPECT_EQ(0x01, data[0]); EXPECT_EQ(0x02, data[1]); EXPECT_EQ(0x03, data[2]); @@ -139,7 +139,7 @@ TEST(Dye, replaceSColor2) data[1] = 0x20; data[2] = 0x30; data[3] = 0x40; - palette.replaceSColor(&data[0]); + palette.replaceSColor(reinterpret_cast(&data[0]), 1); EXPECT_EQ(0x10, data[0]); EXPECT_EQ(0x50, data[1]); EXPECT_EQ(0x60, data[2]); @@ -154,7 +154,7 @@ TEST(Dye, replaceSColor3) data[1] = 0x20; data[2] = 0x30; data[3] = 0xff; - palette.replaceSColor(&data[0]); + palette.replaceSColor(reinterpret_cast(&data[0]), 1); EXPECT_EQ(0x10, data[0]); EXPECT_EQ(0x50, data[1]); EXPECT_EQ(0x60, data[2]); @@ -170,7 +170,7 @@ TEST(Dye, replaceAColor1) data[1] = 0x02; data[2] = 0x03; data[3] = 0x10; - palette.replaceAColor(&data[0]); + palette.replaceAColor(reinterpret_cast(&data[0]), 1); EXPECT_EQ(0x01, data[0]); EXPECT_EQ(0x02, data[1]); EXPECT_EQ(0x03, data[2]); @@ -185,7 +185,7 @@ TEST(Dye, replaceAColor2) data[1] = 0x00; data[2] = 0xff; data[3] = 0x00; - palette.replaceAColor(&data[0]); + palette.replaceAColor(reinterpret_cast(&data[0]), 1); EXPECT_EQ(0xff, data[0]); EXPECT_EQ(0x11, data[1]); EXPECT_EQ(0x00, data[2]); @@ -200,7 +200,7 @@ TEST(Dye, replaceAColor3) data[1] = 0xee; data[2] = 0x00; data[3] = 0x01; - palette.replaceAColor(&data[0]); + palette.replaceAColor(reinterpret_cast(&data[0]), 1); EXPECT_EQ(0xff, data[0]); EXPECT_EQ(0x30, data[1]); EXPECT_EQ(0x20, data[2]); -- cgit v1.2.3-70-g09d2