diff options
| author | JF <jf@codingfield.com> | 2021-03-21 17:15:07 (GMT) |
|---|---|---|
| committer | Gitea <gitea@fake.local> | 2021-03-21 17:15:07 (GMT) |
| commit | 24d3eea4fba05d774ace794eb8c9b21b8f2aa8c6 (patch) | |
| tree | 500b57847eb84f73fa62e7500e5a24d1a6d2f4cb /src/recoveryLoader.cpp | |
| parent | 5cd4b36d6bbf22095e0ff54aa3773febc6e1f22e (diff) | |
| parent | 9f9d0eb5df8ff86b9cd1e095afa3159094dde53c (diff) | |
Merge branch 'develop' of JF/PineTime into master
Diffstat (limited to 'src/recoveryLoader.cpp')
| -rw-r--r-- | src/recoveryLoader.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/recoveryLoader.cpp b/src/recoveryLoader.cpp index 40cd66d..9ed062e 100644 --- a/src/recoveryLoader.cpp +++ b/src/recoveryLoader.cpp @@ -134,8 +134,7 @@ void DisplayLogo() { for(int i = 0; i < displayWidth; i++) { rleDecoder.DecodeNext(displayBuffer, displayWidth * bytesPerPixel); ulTaskNotifyTake(pdTRUE, 500); - lcd.BeginDrawBuffer(0, i, displayWidth, 1); - lcd.NextDrawBuffer(reinterpret_cast<const uint8_t *>(displayBuffer), displayWidth * bytesPerPixel); + lcd.DrawBuffer(0, i, displayWidth, 1, reinterpret_cast<const uint8_t *>(displayBuffer), displayWidth * bytesPerPixel); } } @@ -145,8 +144,7 @@ void DisplayProgressBar(uint8_t percent, uint16_t color) { for(int i = 0; i < barHeight; i++) { ulTaskNotifyTake(pdTRUE, 500); uint16_t barWidth = std::min(static_cast<float>(percent) * 2.4f, static_cast<float>(displayWidth)); - lcd.BeginDrawBuffer(0, displayWidth - barHeight + i, barWidth, 1); - lcd.NextDrawBuffer(reinterpret_cast<const uint8_t *>(displayBuffer), barWidth * bytesPerPixel); + lcd.DrawBuffer(0, displayWidth - barHeight + i, barWidth, 1, reinterpret_cast<const uint8_t *>(displayBuffer), barWidth * bytesPerPixel); } } |
