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

Commit d0929bc4 authored by Vishnu Nair's avatar Vishnu Nair
Browse files

Don't print matrix if it's an identity matrix

Fixes: 165800753
Test: adb shell dumpsys input
Change-Id: Ifd666e92123e01b399620a6889f83c8715cd2253
parent 544bc76e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -515,6 +515,10 @@ void Transform::dump(std::string& out, const char* name, const char* prefix) con
    }
    out += "(" + transformToString(type) + ")\n";

    if (type == IDENTITY) {
        return;
    }

    for (size_t i = 0; i < 3; i++) {
        StringAppendF(&out, "%s    %.4f  %.4f  %.4f\n", prefix, static_cast<double>(mMatrix[0][i]),
                      static_cast<double>(mMatrix[1][i]), static_cast<double>(mMatrix[2][i]));