Hack: use 800x500 resolution for window for emscripten so that mouse roughly lines up.

This commit is contained in:
James Gregory 2013-04-08 19:10:29 -07:00
parent 19c6a50d50
commit 7d563a818a
1 changed files with 3 additions and 2 deletions

View File

@ -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;