aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2017-11-23 21:51:56 +0900
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2017-11-25 16:21:06 +0000
commit7fb167a27e9e12ef38c5942cf73679bff12a5b25 (patch)
treee0c2c0fe27fefaa755ecd238e03e41855e72c203
parent64dc4d770b61d42761cb5f87ee8ae924eb46cd73 (diff)
Fix the flipped screen problemeel_4.99.3eel/4.99.34.99.3
If transform=flipped-270 is set within weston.ini, the video output is incorrect. Fix the problem. Bug-AGL: SPEC-1115 Change-Id: Idc7117b4b8011e17e888d2237665b485b6ae5621 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
-rw-r--r--src/wayland.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/wayland.cpp b/src/wayland.cpp
index 4d6fc3d..53668d2 100644
--- a/src/wayland.cpp
+++ b/src/wayland.cpp
@@ -163,9 +163,11 @@ void output::mode(uint32_t flags, int32_t w, int32_t h, int32_t r) {
void output::done() {
HMI_DEBUG("wm", "wl::output %s @ %p done", __func__, this->proxy.get());
- // Let's just disregard the flipped ones...
+ // Pivot and flipped
if (this->transform == WL_OUTPUT_TRANSFORM_90 ||
- this->transform == WL_OUTPUT_TRANSFORM_270) {
+ this->transform == WL_OUTPUT_TRANSFORM_270 ||
+ this->transform == WL_OUTPUT_TRANSFORM_FLIPPED_90 ||
+ this->transform == WL_OUTPUT_TRANSFORM_FLIPPED_270) {
std::swap(this->width, this->height);
}
}