separate screen handling shit to a specialized class

This commit is contained in:
Arisotura
2020-05-24 23:16:56 +02:00
parent f69f3fcb7a
commit 16252a85e7
4 changed files with 140 additions and 97 deletions

View File

@ -313,10 +313,10 @@ void SetupScreenLayout(int screenWidth, int screenHeight, int screenLayout, int
}
}
float* GetScreenTransform(int screen)
void GetScreenTransforms(float* top, float* bot)
{
if (screen == 0) return TopScreenMtx;
else return BotScreenMtx;
memcpy(top, TopScreenMtx, 6*sizeof(float));
memcpy(bot, BotScreenMtx, 6*sizeof(float));
}
void GetTouchCoords(int& x, int& y)