This commit is contained in:
Branimir Karadžić 2015-10-20 22:45:35 -07:00
parent a82fc25510
commit 8f28fdd970
3 changed files with 6 additions and 5 deletions

View file

@ -143,10 +143,10 @@ class HDR : public entry::AppI
{ {
void init(int /*_argc*/, char** /*_argv*/) BX_OVERRIDE void init(int /*_argc*/, char** /*_argv*/) BX_OVERRIDE
{ {
m_width = 1280; m_width = 1280;
m_height = 720; m_height = 720;
m_debug = BGFX_DEBUG_TEXT; m_debug = BGFX_DEBUG_TEXT;
m_reset = BGFX_RESET_VSYNC; m_reset = BGFX_RESET_VSYNC;
bgfx::init(); bgfx::init();
bgfx::reset(m_width, m_height, m_reset); bgfx::reset(m_width, m_height, m_reset);

View file

@ -319,6 +319,7 @@ BX_PRAGMA_DIAGNOSTIC_POP();
int runApp(AppI* _app, int _argc, char** _argv) int runApp(AppI* _app, int _argc, char** _argv)
{ {
_app->init(_argc, _argv); _app->init(_argc, _argv);
bgfx::frame();
WindowHandle defaultWindow = { 0 }; WindowHandle defaultWindow = { 0 };
setWindowSize(defaultWindow, ENTRY_DEFAULT_WIDTH, ENTRY_DEFAULT_HEIGHT); setWindowSize(defaultWindow, ENTRY_DEFAULT_WIDTH, ENTRY_DEFAULT_HEIGHT);

View file

@ -316,7 +316,7 @@ namespace entry
m_window[0] = XCreateWindow(m_display m_window[0] = XCreateWindow(m_display
, m_root , m_root
, 0, 0 , 0, 0
, ENTRY_DEFAULT_WIDTH, ENTRY_DEFAULT_HEIGHT, 0 , 1, 1, 0
, m_depth , m_depth
, InputOutput , InputOutput
, m_visual , m_visual
@ -362,7 +362,7 @@ namespace entry
thread.init(mte.threadFunc, &mte); thread.init(mte.threadFunc, &mte);
WindowHandle defaultWindow = { 0 }; WindowHandle defaultWindow = { 0 };
m_eventQueue.postSizeEvent(defaultWindow, ENTRY_DEFAULT_WIDTH, ENTRY_DEFAULT_HEIGHT); m_eventQueue.postSizeEvent(defaultWindow, 1, 1);
s_joystick.init(); s_joystick.init();