mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
Update some comments
This commit is contained in:
parent
05eff47b03
commit
3d8c3ee5a9
|
|
@ -1213,9 +1213,7 @@ void UIController::getRenderDimensions(C4JRender::eViewportType viewport, S32 &w
|
||||||
{
|
{
|
||||||
case C4JRender::VIEWPORT_TYPE_FULLSCREEN:
|
case C4JRender::VIEWPORT_TYPE_FULLSCREEN:
|
||||||
{
|
{
|
||||||
// AnyAspectRatio support by Fayaz
|
// AAR - Calculate height and width of contained 16:9 window
|
||||||
// We must clamp the render dimensions to 16:9 so Iggy doesn't stretch content.
|
|
||||||
|
|
||||||
float targetAspect = 16.0f / 9.0f;
|
float targetAspect = 16.0f / 9.0f;
|
||||||
float currentAspect = aar_Width / aar_Height;
|
float currentAspect = aar_Width / aar_Height;
|
||||||
|
|
||||||
|
|
@ -1447,7 +1445,7 @@ void UIController::setupCustomDrawMatrices(UIScene *scene, CustomDrawData *custo
|
||||||
|
|
||||||
glLoadIdentity();
|
glLoadIdentity();
|
||||||
glTranslatef(0, 0, -2000);
|
glTranslatef(0, 0, -2000);
|
||||||
// Fayaz - Apply the calculated tile origin
|
// AAR - Apply the calculated tile origin
|
||||||
glTranslatef((float)m_tileOriginX, (float)m_tileOriginY, 0.0f);
|
glTranslatef((float)m_tileOriginX, (float)m_tileOriginY, 0.0f);
|
||||||
|
|
||||||
// Iggy translations are based on a double-size target, with the origin in the centre
|
// Iggy translations are based on a double-size target, with the origin in the centre
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue