mirror of https://github.com/axmolengine/axmol.git
Hack: use 800x500 resolution for window for emscripten so that mouse roughly lines up.
This commit is contained in:
parent
19c6a50d50
commit
7d563a818a
|
@ -357,8 +357,9 @@ bool CCEGLView::initGL()
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: Get the actual canvas size somehow.
|
// FIXME: Get the actual canvas size somehow.
|
||||||
EGLint width = 300;
|
EGLint width = 800;
|
||||||
EGLint height = 150;
|
EGLint height = 500;
|
||||||
|
#warning Assuming screen size is 800X500. Mouse cursor will be offset if a different sized canvas is used.
|
||||||
|
|
||||||
if ((m_eglDisplay == EGL_NO_DISPLAY) || (m_eglSurface == EGL_NO_SURFACE) )
|
if ((m_eglDisplay == EGL_NO_DISPLAY) || (m_eglSurface == EGL_NO_SURFACE) )
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
|
|
Loading…
Reference in New Issue