File tree Expand file tree Collapse file tree
shared-bindings/displayio Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -421,30 +421,14 @@ STATIC mp_obj_t displayio_display_obj_fill_row(size_t n_args, const mp_obj_t *po
421421 size_t result_buffer_size = bufinfo .len ;
422422
423423 if (result_buffer_size >= (buffer_size * 4 )) {
424- // Allocated and shared as a uint32_t array so the compiler knows the
425- // alignment everywhere.
426- /* uint32_t buffer[buffer_size]; */
427424 volatile uint32_t mask_length = (pixels_per_buffer / 32 ) + 1 ;
428425 uint32_t mask [mask_length ];
429426
430427 for (uint16_t k = 0 ; k < mask_length ; k ++ ) {
431428 mask [k ] = 0x00000000 ;
432429 }
433- /* for (uint16_t k = 0; k < buffer_size; k++) { */
434- /* buffer[k] = 0x00000000; */
435- /* } */
436-
437430
438431 displayio_display_fill_area (self , & area , mask , result_buffer );
439- /* int byte_offset = 0; */
440- /* for (int word_offset = 0; word_offset < buffer_size; word_offset++) { */
441- /* uint32_t word = buffer[word_offset]; */
442- /* for (int byte_count = 0; byte_count < 4; byte_count++) { */
443- /* array_subscr(result, MP_OBJ_NEW_SMALL_INT(byte_offset), MP_OBJ_NEW_SMALL_INT(word & 0x000000FF)); */
444- /* word >>= 8; */
445- /* byte_offset++; */
446- /* } */
447- /* } */
448432 return result ;
449433 } else {
450434 mp_raise_ValueError (translate ("Buffer is too small" ));
You can’t perform that action at this time.
0 commit comments