From 4adecab397a1b4806dec920bb745393033103fca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sun, 15 May 2016 09:02:25 -0700 Subject: [PATCH] Cleanup. --- examples/17-drawstress/drawstress.cpp | 6 +++--- include/bgfx/c99/bgfx.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/17-drawstress/drawstress.cpp b/examples/17-drawstress/drawstress.cpp index ce0c8fd61..5cc973379 100644 --- a/examples/17-drawstress/drawstress.cpp +++ b/examples/17-drawstress/drawstress.cpp @@ -75,7 +75,7 @@ class ExampleDrawStress : public entry::AppI void init(int _argc, char** _argv) BX_OVERRIDE { Args args(_argc, _argv); - + m_width = 1280; m_height = 720; m_debug = BGFX_DEBUG_TEXT; @@ -224,7 +224,7 @@ class ExampleDrawStress : public entry::AppI , m_height ); - imguiBeginScrollArea("Settings", m_width - m_width / 4 - 10, 10, m_width / 4, m_height / 3, &m_scrollArea); + imguiBeginScrollArea("Settings", m_width - m_width / 4 - 10, 10, m_width / 4, m_height / 2, &m_scrollArea); imguiSeparatorLine(); m_transform = imguiChoose(m_transform @@ -248,7 +248,7 @@ class ExampleDrawStress : public entry::AppI imguiLabel("CPU %0.6f [ms]", double(stats->cpuTimeEnd - stats->cpuTimeBegin)*1000.0/stats->cpuTimerFreq); imguiLabel("Waiting for render thread %0.6f [ms]", double(stats->waitRender) * toMs); imguiLabel("Waiting for submit thread %0.6f [ms]", double(stats->waitSubmit) * toMs); - + imguiEndScrollArea(); imguiEndFrame(); diff --git a/include/bgfx/c99/bgfx.h b/include/bgfx/c99/bgfx.h index 37b07c45f..dfc940cbd 100644 --- a/include/bgfx/c99/bgfx.h +++ b/include/bgfx/c99/bgfx.h @@ -307,8 +307,8 @@ typedef struct bgfx_stats uint64_t gpuTimeEnd; uint64_t gpuTimerFreq; - int64_t waitRender; - int64_t waitSubmit; + int64_t waitRender; + int64_t waitSubmit; } bgfx_stats_t; /**/