Skip to content

Commit 92a2472

Browse files
1 parent fa8524f commit 92a2472

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/databus/Arduino_ESP32RGBPanel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ uint16_t *Arduino_ESP32RGBPanel::getFrameBuffer(int16_t w, int16_t h)
7272
#else
7373
.bits_per_pixel = 16,
7474
.num_fbs = 1,
75-
.bounce_buffer_size_px = 40 * w,
75+
.bounce_buffer_size_px = (size_t)(w * 40),
7676
#endif
7777
.sram_trans_align = 8,
7878
.psram_trans_align = 64,

src/display/Arduino_RGB_Display.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,6 @@ void Arduino_RGB_Display::drawYCbCrBitmap(int16_t x, int16_t y, uint8_t *yData,
518518
}
519519
else
520520
{
521-
int cols = w >> 1;
522521
int rows = h >> 1;
523522

524523
uint16_t *dest = _framebuffer;

0 commit comments

Comments
 (0)