}
mFuncs->glBlendFunc(GL_DST_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
+ mOrtho.setToIdentity();
+ mOrtho.rotate((float)-rotateAngle, 0.0f, 0.0f, 1.0f);
+ mOrtho.ortho(0.0f, (float)mGuestResolution.width(),
+ 0.0f, (float)mGuestResolution.height(),
+ -1.0f, 1.0f);
+ needScale = (mGuestResolution.width() != width())
+ || (mGuestResolution.height() != height());
+
drawQuad(dpyTexture, false);
if (isTsEnabled) {
drawMultiTouchPoints();
// TODO: check changing of the guest resolution
// for 'Runtime Resolution Change'
- mOrtho.setToIdentity();
- mOrtho.rotate((float)-rotateAngle, 0.0f, 0.0f, 1.0f);
- mOrtho.ortho(0.0f, (float)mGuestResolution.width(),
- 0.0f, (float)mGuestResolution.height(),
- -1.0f, 1.0f);
- needScale = (mGuestResolution.width() != width())
- || (mGuestResolution.height() != height());
}
/* override */