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

Commit 09fa0fcc authored by chaochen's avatar chaochen Committed by Steve Kondik
Browse files

Fix for landscape thumbnail images on GLES11RenderEngine



Change-Id: If825345be2c30645c7b87258b7e24d6009f3090a
Signed-off-by: default avatarRaj Mamadgi <rmamadgi@sta.samsung.com>
parent 0ae4c1fe
Loading
Loading
Loading
Loading
+17 −2
Original line number Diff line number Diff line
@@ -96,14 +96,29 @@ void GLES11RenderEngine::setViewportAndProjection(
        case Transform::ROT_0:
            break;
        case Transform::ROT_90:
            glRotatef(90, 0, 0, 1);
        {
            float x1 = (l+r)/2;
            float y1 = (t+b)/2;
            glTranslatef(x1-y1, x1+y1, 0);
            glRotatef(270, 0, 0, 1);
            break;
        }
        case Transform::ROT_180:
        {
            float x1 = (l+r)/2;
            float y1 = (t+b)/2;
            glTranslatef(x1*2, y1*2, 0);
            glRotatef(180, 0, 0, 1);
            break;
        }
        case Transform::ROT_270:
            glRotatef(270, 0, 0, 1);
        {
            float x1 = (l+r)/2;
            float y1 = (t+b)/2;
            glTranslatef(x1+y1, y1-x1, 0);
            glRotatef(90, 0, 0, 1);
            break;
        }
        default:
            break;
    }