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

Commit 1d8d412b authored by David Hanna Jr's avatar David Hanna Jr Committed by David Hanna
Browse files

test-hwc2: Corrected rotation to be clock-wise

Test: Ran on (heavily modified ryu)

Bug: 64723426
Change-Id: I203fb313b6b2c865f6d9a0920a2ffd3714be5e96
parent a33670dc
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -570,8 +570,8 @@ int Hwc2TestClientTargetBuffer::get(buffer_handle_t* outHandle,
                     * (100x50) at the end of the transformation. */
                    if (transform & HWC_TRANSFORM_ROT_90) {
                        float tmp = xPos;
                        xPos = -yPos * dfW / dfH;
                        yPos = tmp * dfH / dfW;
                        xPos = yPos * dfW / dfH;
                        yPos = -tmp * dfH / dfW;
                    }

                    /* Change origin back to the top left corner of the