Skip to content

Commit bc384c2

Browse files
committed
fixed drawing after screen calibration
1 parent 87b74c0 commit bc384c2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/eez/apps/home/home.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,15 @@ void HomeAppContext::onPageTouch(const WidgetCursor &foundWidget, Event &touchEv
168168
y = 1;
169169
else if (y > eez::mcu::display::getDisplayHeight() - 2)
170170
y = eez::mcu::display::getDisplayHeight() - 2;
171-
171+
172+
#if OPTION_SDRAM
173+
int selectedBufferIndexSaved = mcu::display::selectBuffer(m_activePage.displayBufferIndex);
174+
#endif
172175
eez::mcu::display::setColor(255, 255, 255);
173176
eez::mcu::display::fillRect(x - 1, y - 1, x + 1, y + 1);
177+
#if OPTION_SDRAM
178+
mcu::display::selectBuffer(selectedBufferIndexSaved);
179+
#endif
174180
}
175181
#endif
176182

0 commit comments

Comments
 (0)