comparison UnitTestsSources/PixelTestPatternsTests.cpp @ 1501:1e381f2596d3

fix warnings
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 30 Jun 2020 11:29:41 +0200
parents 30deba7bc8e2
children
comparison
equal deleted inserted replaced
1500:6e832ff72a5e 1501:1e381f2596d3
133 // K W K W W K W K 133 // K W K W W K W K
134 uint8_t eeendR[NCELLS] = {000,255,000,255,255,000,255,000}; 134 uint8_t eeendR[NCELLS] = {000,255,000,255,255,000,255,000};
135 uint8_t eeendG[NCELLS] = {000,255,000,255,255,000,255,000 }; 135 uint8_t eeendG[NCELLS] = {000,255,000,255,255,000,255,000 };
136 uint8_t eeendB[NCELLS] = {000,255,000,255,255,000,255,000 }; 136 uint8_t eeendB[NCELLS] = {000,255,000,255,255,000,255,000 };
137 137
138 // vertical?
139 bool verticality[NCELLS] = { false,true,false,true,true,false,true,false };
140
141 for(size_t slot = 0; slot < NCELLS; ++slot) 138 for(size_t slot = 0; slot < NCELLS; ++slot)
142 { 139 {
143 int x0 = (slot % 4) * CELLW; 140 int x0 = (slot % 4) * CELLW;
144 bool vertical = (((slot / NHCELLS) % 2) == 0) ? (slot % 2 == 0) : (slot % 2 == 1); 141 bool vertical = (((slot / NHCELLS) % 2) == 0) ? (slot % 2 == 0) : (slot % 2 == 1);
145 int y0 = static_cast<int>(slot / NHCELLS) * CELLH; 142 int y0 = static_cast<int>(slot / NHCELLS) * CELLH;