fix build for non-displayio & non-protomatter targets

This commit is contained in:
Jeff Epler 2020-04-01 16:10:19 -05:00
parent 3a94412cd3
commit 1f3821220e
2 changed files with 6 additions and 1 deletions

View File

@ -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;

View File

@ -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;