summaryrefslogtreecommitdiff
path: root/supervisor/shared/display.c
diff options
context:
space:
mode:
authorJeff Epler <jepler@gmail.com>2020-04-15 15:01:24 -0500
committerJeff Epler <jepler@gmail.com>2020-04-17 18:44:07 -0500
commit5fcc6d62869310b2b1dd96279e5a121623e07aba (patch)
tree70a6bd5a8da25058d81ccc158619ca53b368039a /supervisor/shared/display.c
parent1b478bbae6145e8e4d4e97a7c72b730df292e602 (diff)
RGBMatrix: finish renaming from Protomatter
This gets all the purely internal references. Some uses of protomatter/Protomatter/PROTOMATTER remain, as they are references to symbols in the Protomatter C library itself.
Diffstat (limited to 'supervisor/shared/display.c')
-rw-r--r--supervisor/shared/display.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/supervisor/shared/display.c b/supervisor/shared/display.c
index 95926bc9c..9c074209b 100644
--- a/supervisor/shared/display.c
+++ b/supervisor/shared/display.c
@@ -34,7 +34,7 @@
#include "shared-bindings/displayio/TileGrid.h"
#include "supervisor/memory.h"
-#if CIRCUITPY_PROTOMATTER
+#if CIRCUITPY_RGBMATRIX
#include "shared-module/displayio/__init__.h"
#endif
@@ -116,11 +116,11 @@ void supervisor_display_move_memory(void) {
grid->inline_tiles = false;
}
MP_STATE_VM(terminal_tilegrid_tiles) = NULL;
- #if CIRCUITPY_PROTOMATTER
+ #if CIRCUITPY_RGBMATRIX
for (uint8_t i = 0; i < CIRCUITPY_DISPLAY_LIMIT; i++) {
- if (displays[i].protomatter.base.type == &protomatter_Protomatter_type) {
- protomatter_protomatter_obj_t * pm = &displays[i].protomatter;
- common_hal_protomatter_protomatter_reconstruct(pm, NULL);
+ if (displays[i].rgbmatrix.base.type == &rgbmatrix_RGBMatrix_type) {
+ rgbmatrix_rgbmatrix_obj_t * pm = &displays[i].rgbmatrix;
+ common_hal_rgbmatrix_rgbmatrix_reconstruct(pm, NULL);
}
}
#endif