File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -296,13 +296,6 @@ bool displayio_area_compute_overlap(const displayio_area_t *a,
296
296
return true;
297
297
}
298
298
299
- void displayio_copy_coords (const displayio_area_t * src , displayio_area_t * dest ) {
300
- dest -> x1 = src -> x1 ;
301
- dest -> y1 = src -> y1 ;
302
- dest -> x2 = src -> x2 ;
303
- dest -> y2 = src -> y2 ;
304
- }
305
-
306
299
bool displayio_area_empty (const displayio_area_t * a ) {
307
300
return (a -> x1 == a -> x2 ) || (a -> y1 == a -> y2 );
308
301
}
@@ -325,11 +318,11 @@ void displayio_area_union(const displayio_area_t *a,
325
318
displayio_area_t * u ) {
326
319
327
320
if (displayio_area_empty (a )) {
328
- displayio_copy_coords (b , u );
321
+ displayio_area_copy (b , u );
329
322
return ;
330
323
}
331
324
if (displayio_area_empty (b )) {
332
- displayio_copy_coords (a , u );
325
+ displayio_area_copy (a , u );
333
326
return ;
334
327
}
335
328
u -> x1 = MIN (a -> x1 , b -> x1 );
You can’t perform that action at this time.
0 commit comments