mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-24 16:48:18 -05:00
Cleanup.
This commit is contained in:
parent
a82fc25510
commit
8f28fdd970
3 changed files with 6 additions and 5 deletions
|
@ -143,10 +143,10 @@ class HDR : public entry::AppI
|
|||
{
|
||||
void init(int /*_argc*/, char** /*_argv*/) BX_OVERRIDE
|
||||
{
|
||||
m_width = 1280;
|
||||
m_width = 1280;
|
||||
m_height = 720;
|
||||
m_debug = BGFX_DEBUG_TEXT;
|
||||
m_reset = BGFX_RESET_VSYNC;
|
||||
m_debug = BGFX_DEBUG_TEXT;
|
||||
m_reset = BGFX_RESET_VSYNC;
|
||||
|
||||
bgfx::init();
|
||||
bgfx::reset(m_width, m_height, m_reset);
|
||||
|
|
|
@ -319,6 +319,7 @@ BX_PRAGMA_DIAGNOSTIC_POP();
|
|||
int runApp(AppI* _app, int _argc, char** _argv)
|
||||
{
|
||||
_app->init(_argc, _argv);
|
||||
bgfx::frame();
|
||||
|
||||
WindowHandle defaultWindow = { 0 };
|
||||
setWindowSize(defaultWindow, ENTRY_DEFAULT_WIDTH, ENTRY_DEFAULT_HEIGHT);
|
||||
|
|
|
@ -316,7 +316,7 @@ namespace entry
|
|||
m_window[0] = XCreateWindow(m_display
|
||||
, m_root
|
||||
, 0, 0
|
||||
, ENTRY_DEFAULT_WIDTH, ENTRY_DEFAULT_HEIGHT, 0
|
||||
, 1, 1, 0
|
||||
, m_depth
|
||||
, InputOutput
|
||||
, m_visual
|
||||
|
@ -362,7 +362,7 @@ namespace entry
|
|||
thread.init(mte.threadFunc, &mte);
|
||||
|
||||
WindowHandle defaultWindow = { 0 };
|
||||
m_eventQueue.postSizeEvent(defaultWindow, ENTRY_DEFAULT_WIDTH, ENTRY_DEFAULT_HEIGHT);
|
||||
m_eventQueue.postSizeEvent(defaultWindow, 1, 1);
|
||||
|
||||
s_joystick.init();
|
||||
|
||||
|
|
Loading…
Reference in a new issue