X.org server based on XSDL, I did not try to run it yet

This commit is contained in:
Sergii Pylypenko
2013-11-01 23:24:31 +02:00
parent 07e8ba6371
commit fa67a2728e
11 changed files with 300 additions and 4 deletions

View File

@@ -0,0 +1,21 @@
#include <stdlib.h>
#include <SDL/SDL.h>
extern int android_main(int argc, char *argv[], char *envp[]);
int main(int argc, char* argv[])
{
char screenres[64] = "640x480x24";
char* args[] = {
"XSDL",
":1111",
"-3button",
"-screen",
screenres
};
char * envp[] = { NULL };
sprintf("%sx%sx%d", getenv("DISPLAY_RESOLUTION_WIDTH"), getenv("DISPLAY_RESOLUTION_HEIGHT"), 24);
return android_main(5, args, envp);
}