summaryrefslogtreecommitdiff
path: root/supervisor/shared/display.c
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2019-02-01 01:00:10 -0800
committerScott Shawcroft <scott@tannewt.org>2019-02-01 01:00:10 -0800
commit03068a93884e5d0c7bd5b937e0362b379bb2ac9a (patch)
treea50349f133c47e024c9f19898b5cef208598dae4 /supervisor/shared/display.c
parent9a9d85fadc57920f70719d04d6ad4c26b66d7ef4 (diff)
Fix built-in inits and terminal allocate
Diffstat (limited to 'supervisor/shared/display.c')
-rw-r--r--supervisor/shared/display.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/supervisor/shared/display.c b/supervisor/shared/display.c
index 3a430f568..2652630be 100644
--- a/supervisor/shared/display.c
+++ b/supervisor/shared/display.c
@@ -55,7 +55,7 @@ void supervisor_start_terminal(uint16_t width_px, uint16_t height_px) {
uint16_t total_tiles = width_in_tiles * height_in_tiles;
// First try to allocate outside the heap. This will fail when the VM is running.
- tilegrid_tiles = allocate_memory(total_tiles, false);
+ tilegrid_tiles = allocate_memory(align32_size(total_tiles), false);
uint8_t* tiles;
if (tilegrid_tiles == NULL) {
tiles = m_malloc(total_tiles, true);