24 uint16_t width = getWidth();
25 uint16_t height = getHeight();
26 uint16_t square_size = Math::min(width, height) / 2;
27 uint16_t start_x = (width - square_size) / 2;
28 uint16_t start_y = (height - square_size) / 2;
30 for (uint16_t x = 0; x < width; x++) {
31 for (uint16_t y = 0; y < height; y++) {
32 uint16_t idx = mXyMap.mapToIndex(x, y);
33 if (idx < mXyMap.getTotal()) {
34 if (x >= start_x && x < start_x + square_size &&
35 y >= start_y && y < start_y + square_size) {