diff options
| author | JF <jf@codingfield.com> | 2020-08-19 14:04:05 (GMT) |
|---|---|---|
| committer | Gitea <gitea@fake.local> | 2020-08-19 14:04:05 (GMT) |
| commit | 9906a708c9fcbc13f47bdba0cb8512799a2a3719 (patch) | |
| tree | 98ad9be1bc27a4ea1b9d5ce53837c20902da96c9 /src/graphics.cpp | |
| parent | 18686ac2cbf6b97dd0250234ce128bd9ad350d6e (diff) | |
| parent | 1e1bb1c6b7d7fdf6299c97bc11555b08f034f324 (diff) | |
Merge branch 'removeWarnings' of JF/PineTime into develop
Diffstat (limited to 'src/graphics.cpp')
| -rw-r--r-- | src/graphics.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/graphics.cpp b/src/graphics.cpp index 3b53703..b8376d6 100644 --- a/src/graphics.cpp +++ b/src/graphics.cpp @@ -103,10 +103,10 @@ void Process(void* instance) { static constexpr uint32_t screenWidth = 240; static constexpr uint32_t screenWidthInBytes = screenWidth*2; // LCD display 16bits color (1 pixel = 2 bytes) uint16_t displayLineBuffer[screenWidth]; - for(int line = 0; line < screenWidth; line++) { + for(uint32_t line = 0; line < screenWidth; line++) { spiNorFlash.Read(line*screenWidthInBytes, reinterpret_cast<uint8_t *>(displayLineBuffer), screenWidth); spiNorFlash.Read((line*screenWidthInBytes)+screenWidth, reinterpret_cast<uint8_t *>(displayLineBuffer) + screenWidth, screenWidth); - for(int col = 0; col < screenWidth; col++) { + for(uint32_t col = 0; col < screenWidth; col++) { gfx.pixel_draw(col, line, displayLineBuffer[col]); } } |
