forked from Makuna/NeoPixelBus
1 parent
2480634ca7
commit
5e492ea925
12 files changed
+41
-41
No files matched your search
@@ -162,9 +162,9 @@ private:
|
||||
uint16_t result = PixelIndex_OutOfBounds;
|
||||
|
||||
if (x >= 0 &&
|
||||
(uint16_t)x < Width() &&
|
||||
static_cast<uint16_t>(x) < Width() &&
|
||||
y >= 0 &&
|
||||
(uint16_t)y < Height())
|
||||
static_cast<uint16_t>(y) < Height())
|
||||
{
|
||||
result = x + y * Width();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user