* commit 'dd70f991a844e16316fc34c91a4f535ada25e25e': emulator:opengl: custom framebuffer sizes
This commit is contained in:
@@ -24,7 +24,7 @@ Note that emugen is capable of generating, from a single set of specification
|
|||||||
files, three types of auto-generated sources:
|
files, three types of auto-generated sources:
|
||||||
|
|
||||||
- sources to encode commands into a byte stream.
|
- sources to encode commands into a byte stream.
|
||||||
- sources to decide the byte stream into commands.
|
- sources to decode the byte stream into commands.
|
||||||
- sources to wrap normal procedural EGL/GLES calls into context-aware ones.
|
- sources to wrap normal procedural EGL/GLES calls into context-aware ones.
|
||||||
|
|
||||||
Modules under the system/ directory corresponds to code that runs on the
|
Modules under the system/ directory corresponds to code that runs on the
|
||||||
|
|||||||
@@ -30,8 +30,15 @@ int main(int argc, char *argv[])
|
|||||||
int portNum = 22468;
|
int portNum = 22468;
|
||||||
int winWidth = 320;
|
int winWidth = 320;
|
||||||
int winHeight = 480;
|
int winHeight = 480;
|
||||||
|
int width, height;
|
||||||
|
const char* env = getenv("ANDROID_WINDOW_SIZE");
|
||||||
FBNativeWindowType windowId = NULL;
|
FBNativeWindowType windowId = NULL;
|
||||||
|
|
||||||
|
if (env && sscanf(env, "%dx%d", &width, &height) == 2) {
|
||||||
|
winWidth = width;
|
||||||
|
winHeight = height;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Inialize SDL window
|
// Inialize SDL window
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user