File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
shared-module/bitmaptools Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -423,8 +423,8 @@ void common_hal_bitmaptools_draw_line(displayio_bitmap_t *destination,
423
423
y0 = y1 ;
424
424
y1 = temp ;
425
425
}
426
- y0 = max (0 , y0 ); // only draw inside bitmap
427
- y1 = min (y1 , destination -> height - 1 );
426
+ y0 = MAX (0 , y0 ); // only draw inside bitmap
427
+ y1 = MIN (y1 , destination -> height - 1 );
428
428
for (y = y0 ; y < (y1 + 1 ); y ++ ) { // write a horizontal line
429
429
displayio_bitmap_write_pixel (destination , x0 , y , value );
430
430
}
@@ -434,8 +434,8 @@ void common_hal_bitmaptools_draw_line(displayio_bitmap_t *destination,
434
434
x0 = x1 ;
435
435
x1 = temp ;
436
436
}
437
- x0 = max (0 , x0 ); // only draw inside bitmap
438
- x1 = min (x1 , destination -> width - 1 );
437
+ x0 = MAX (0 , x0 ); // only draw inside bitmap
438
+ x1 = MIN (x1 , destination -> width - 1 );
439
439
for (x = x0 ; x < (x1 + 1 ); x ++ ) { // write a horizontal line
440
440
displayio_bitmap_write_pixel (destination , x , y0 , value );
441
441
}
You can’t perform that action at this time.
0 commit comments