X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fwayland_ivi_wm.cpp;h=f1a0c2bb7da82802752f6c08693c1a72f721101a;hb=0b276469c2b1d58bf849b6bd1aeb7362e90f45e1;hp=2937487e33c7915e8c7d1faf88a7a56dde34a5e6;hpb=a94f6c67c67a68df8a894699686f2eaa8e870208;p=apps%2Fagl-service-windowmanager.git diff --git a/src/wayland_ivi_wm.cpp b/src/wayland_ivi_wm.cpp index 2937487..f1a0c2b 100644 --- a/src/wayland_ivi_wm.cpp +++ b/src/wayland_ivi_wm.cpp @@ -148,6 +148,8 @@ void output::geometry(int32_t x, int32_t y, int32_t pw, int32_t ph, HMI_DEBUG("wm", "wl::output %s @ %p x %i y %i w %i h %i spel %x make %s model %s tx %i", __func__, this->proxy.get(), x, y, pw, ph, subpel, make, model, tx); + this->physical_width = pw; + this->physical_height = ph; this->transform = tx; } @@ -169,6 +171,7 @@ void output::done() { this->transform == WL_OUTPUT_TRANSFORM_FLIPPED_90 || this->transform == WL_OUTPUT_TRANSFORM_FLIPPED_270) { std::swap(this->width, this->height); + std::swap(this->physical_width, this->physical_height); } }