mirror of
https://github.com/esphome/esphome.git
synced 2026-09-19 19:18:47 +00:00
[display] Trim the per pixel cost of draw_pixel_at (#19360)
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
#include <utility>
|
||||
|
||||
#include "esphome/core/application.h"
|
||||
#include "esphome/core/log.h"
|
||||
|
||||
namespace esphome::display {
|
||||
@@ -44,7 +43,7 @@ int DisplayBuffer::get_height() {
|
||||
}
|
||||
|
||||
void HOT DisplayBuffer::draw_pixel_at(int x, int y, Color color) {
|
||||
if (!this->get_clipping().inside(x, y))
|
||||
if (this->is_point_clipped(x, y))
|
||||
return; // NOLINT
|
||||
|
||||
switch (this->rotation_) {
|
||||
@@ -64,7 +63,7 @@ void HOT DisplayBuffer::draw_pixel_at(int x, int y, Color color) {
|
||||
break;
|
||||
}
|
||||
this->draw_absolute_pixel_internal(x, y, color);
|
||||
App.feed_wdt();
|
||||
this->feed_wdt_per_pixel_();
|
||||
}
|
||||
|
||||
} // namespace esphome::display
|
||||
|
||||
Reference in New Issue
Block a user