misc: Change clear rectangle to include array layer/count

commit: 53a511d
10 files changed