mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 21:44:55 +01:00
[touchscreen] Fix coordinates when using rotation (#7591)
This commit is contained in:
parent
bafb0ad688
commit
f52136338d
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() {
|
||||
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 a new issue