Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c20d70e0 authored by Greg Kaiser's avatar Greg Kaiser
Browse files

Assure width and height are always initialized

In case a user fails to call setDimensions() prior to several
other methods on this class, we at least want to have consistent
behavior that's easy to debug.

Test: TreeHugger
BUG: 199413815
Change-Id: Iee7681ed855cf6ebf9e436e0d2864e0fc9cb4025
parent 2f5c7971
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -199,7 +199,7 @@ class VtsComposerClient {

class VtsDisplay {
  public:
    VtsDisplay(int64_t displayId) : mDisplayId(displayId) {}
    VtsDisplay(int64_t displayId) : mDisplayId(displayId), mDisplayWidth(0), mDisplayHeight(0) {}

    int64_t getDisplayId() const { return mDisplayId; }