diff --git a/examples/common/entry/entry_ios.mm b/examples/common/entry/entry_ios.mm index 11267cb1..cee480d9 100644 --- a/examples/common/entry/entry_ios.mm +++ b/examples/common/entry/entry_ios.mm @@ -171,9 +171,9 @@ using namespace entry; - (void)layoutSubviews { - uint32_t frameW = (uint32_t)(self.contentScaleFactor * self.frame.size.width); - uint32_t frameH = (uint32_t)(self.contentScaleFactor * self.frame.size.height); - s_ctx->m_eventQueue.postSizeEvent(s_defaultWindow, frameW, frameH); + uint32_t frameW = (uint32_t)(self.contentScaleFactor * self.frame.size.width); + uint32_t frameH = (uint32_t)(self.contentScaleFactor * self.frame.size.height); + s_ctx->m_eventQueue.postSizeEvent(s_defaultWindow, frameW, frameH); } - (void)start diff --git a/include/bgfx.h b/include/bgfx.h index 6e14f1ae..504a34df 100644 --- a/include/bgfx.h +++ b/include/bgfx.h @@ -14,7 +14,7 @@ /// #define BGFX_HANDLE(_name) \ struct _name { uint16_t idx; }; \ - inline bool isValid(_name _handle) { return bgfx::invalidHandle != _handle.idx; } + inline bool isValid(_name _handle) { return bgfx::invalidHandle != _handle.idx; } #define BGFX_INVALID_HANDLE { bgfx::invalidHandle } diff --git a/src/glcontext_eagl.mm b/src/glcontext_eagl.mm index 4805820a..0ff5e637 100644 --- a/src/glcontext_eagl.mm +++ b/src/glcontext_eagl.mm @@ -99,7 +99,7 @@ namespace bgfx { namespace gl BX_UNUSED(_width, _height, _flags); BX_TRACE("resize context"); - if (0 != m_fbo) + if (0 != m_fbo) { GL_CHECK(glDeleteFramebuffers(1, &m_fbo) ); m_fbo = 0; @@ -117,7 +117,7 @@ namespace bgfx { namespace gl m_depthStencilRbo = 0; } - GL_CHECK(glGenFramebuffers(1, &m_fbo) ); + GL_CHECK(glGenFramebuffers(1, &m_fbo) ); GL_CHECK(glBindFramebuffer(GL_FRAMEBUFFER, m_fbo) ); GL_CHECK(glGenRenderbuffers(1, &m_colorRbo) );