diff options
author | Yuta Doi <yuta-d@witz-inc.co.jp> | 2018-06-12 13:08:40 +0900 |
---|---|---|
committer | Yuta Doi <yuta-d@witz-inc.co.jp> | 2018-06-12 13:08:40 +0900 |
commit | 35aa4b191be8c4fba6b3139d9028d45458fb4a7b (patch) | |
tree | 6e31edc61fc517dcd23b5d5f78f8848c44a9b709 | |
parent | a0c42b482418b04b5179d13aa7a9be0c4ef02782 (diff) |
Bug fix: Calling enqueue_flushdraw is later than emit_syncdraw
Change-Id: Idd632363727d7e1f4584d114e958c8689558ec10
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
-rw-r--r-- | src/app.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/app.cpp b/src/app.cpp index dca0e74..20917ae 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -1188,13 +1188,13 @@ void App::setSurfaceSize(const char* role, const char* area) { HMI_DEBUG("wm", "Surface rect { %d, %d, %d, %d }", size.x, size.y, size.w, size.h); + // Enqueue flushDraw event + this->enqueue_flushdraw(surface_id); + // Emit syncDraw event const char* drawing_name = this->role2drawingname_[role].c_str(); this->emit_syncdraw(drawing_name, area, size.x, size.y, size.w, size.h); - - // Enqueue flushDraw event - this->enqueue_flushdraw(surface_id); } void App::setAccelPedalPos(double val) { |