mirror of
https://github.com/esphome/esphome.git
synced 2024-11-21 11:37:27 +01:00
[touchscreen] Fix coordinates when using rotation (#7591)
This commit is contained in:
parent
654cee6f83
commit
77d0bfc4bb
@ -18,8 +18,8 @@ void Touchscreen::attach_interrupt_(InternalGPIOPin *irq_pin, esphome::gpio::Int
|
||||
|
||||
void Touchscreen::call_setup() {
|
||||
if (this->display_ != nullptr) {
|
||||
this->display_width_ = this->display_->get_native_width();
|
||||
this->display_height_ = this->display_->get_native_height();
|
||||
this->display_width_ = this->display_->get_width();
|
||||
this->display_height_ = this->display_->get_height();
|
||||
}
|
||||
PollingComponent::call_setup();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user