SDL: Android TV support, preliminary for now.

This commit is contained in:
Sergii Pylypenko
2015-12-07 22:24:46 +02:00
parent bca631718c
commit fb7e7ae217
14 changed files with 45 additions and 20 deletions

View File

@@ -420,17 +420,6 @@ SDL_Surface *ANDROID_SetVideoMode(_THIS, SDL_Surface *current,
window.w = width;
window.h = height;
if( getenv("OUYA") )
{
// Leave 10% at the borders blank, because all TVs have crazy thick edges and not enough pixels
// Also this is enforced by Ouya guidelines, so there's not much choice.
window.x += window.w / 10;
window.y += window.h / 10;
window.w -= window.w / 5;
window.h -= window.h / 5;
SDL_ANDROID_ForceClearScreenRectAmount = 4;
}
SDL_ANDROID_ForceClearScreenRect[0].x = 0;
SDL_ANDROID_ForceClearScreenRect[0].y = 0;
SDL_ANDROID_ForceClearScreenRect[0].w = window.x;