mirror of
https://github.com/esphome/esphome.git
synced 2024-11-28 17:54:13 +01:00
[touchscreen] Fix coordinates when using rotation (#7591)
This commit is contained in:
parent
654cee6f83
commit
77d0bfc4bb
1 changed files with 2 additions and 2 deletions
|
@ -18,8 +18,8 @@ void Touchscreen::attach_interrupt_(InternalGPIOPin *irq_pin, esphome::gpio::Int
|
||||||
|
|
||||||
void Touchscreen::call_setup() {
|
void Touchscreen::call_setup() {
|
||||||
if (this->display_ != nullptr) {
|
if (this->display_ != nullptr) {
|
||||||
this->display_width_ = this->display_->get_native_width();
|
this->display_width_ = this->display_->get_width();
|
||||||
this->display_height_ = this->display_->get_native_height();
|
this->display_height_ = this->display_->get_height();
|
||||||
}
|
}
|
||||||
PollingComponent::call_setup();
|
PollingComponent::call_setup();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue