Skip to content

Commit

Permalink
Fixed mode change bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
BornaBiro committed Aug 17, 2023
1 parent 19ad0e5 commit 32be135
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/include/Graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,10 @@ void Graphics::selectDisplayMode(uint8_t _mode)
if (_mode != _displayMode)
{
_displayMode = _mode & 1;
memset(DMemoryNew, 0, 60000);
memset(_partial, 0, 60000);
memset(_pBuffer, 0, 120000);
memset(DMemory4Bit, 255, 240000);
memset(DMemoryNew, 0, E_INK_WIDTH * E_INK_HEIGHT / 8);
memset(_partial, 0, E_INK_WIDTH * E_INK_HEIGHT / 8);
memset(_pBuffer, 0, E_INK_WIDTH * E_INK_HEIGHT / 4);
memset(DMemory4Bit, 255, E_INK_WIDTH * E_INK_HEIGHT / 2);
}
}
#endif
Expand Down

0 comments on commit 32be135

Please sign in to comment.