fix build for non-displayio & non-protomatter targets
This commit is contained in:
parent
3a94412cd3
commit
1f3821220e
|
@ -21,6 +21,7 @@
|
|||
|
||||
primary_display_t displays[CIRCUITPY_DISPLAY_LIMIT];
|
||||
|
||||
#if CIRCUITPY_PROTOMATTER
|
||||
STATIC bool any_display_uses_this_protomatter(protomatter_protomatter_obj_t* pm) {
|
||||
for (uint8_t i = 0; i < CIRCUITPY_DISPLAY_LIMIT; i++) {
|
||||
if (displays[i].framebuffer_display.base.type == &framebufferio_framebufferdisplay_type) {
|
||||
|
@ -32,6 +33,7 @@ STATIC bool any_display_uses_this_protomatter(protomatter_protomatter_obj_t* pm)
|
|||
}
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
// Check for recursive calls to displayio_background.
|
||||
bool displayio_background_in_progress = false;
|
||||
|
|
|
@ -29,12 +29,15 @@
|
|||
#include <string.h>
|
||||
|
||||
#include "py/mpstate.h"
|
||||
#include "shared-module/displayio/__init__.h"
|
||||
#include "shared-bindings/displayio/Group.h"
|
||||
#include "shared-bindings/displayio/Palette.h"
|
||||
#include "shared-bindings/displayio/TileGrid.h"
|
||||
#include "supervisor/memory.h"
|
||||
|
||||
#if CIRCUITPY_PROTOMATTER
|
||||
#include "shared-module/displayio/__init__.h"
|
||||
#endif
|
||||
|
||||
extern size_t blinka_bitmap_data[];
|
||||
extern displayio_bitmap_t blinka_bitmap;
|
||||
extern displayio_group_t circuitpython_splash;
|
||||
|
|
Loading…
Reference in New Issue