mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2025-02-26 16:44:00 -05:00
Added 1px offset to imguiBorderButton() to fix DX9 drawing problem.
This commit is contained in:
parent
efe0bc3c47
commit
7b03d93336
1 changed files with 4 additions and 4 deletions
|
@ -1884,8 +1884,8 @@ struct Imgui
|
||||||
if (ImguiBorder::Left == _border)
|
if (ImguiBorder::Left == _border)
|
||||||
{
|
{
|
||||||
xx = -borderSize;
|
xx = -borderSize;
|
||||||
yy = 0;
|
yy = -1;
|
||||||
width = 2*borderSize;
|
width = 2*borderSize+1;
|
||||||
height = m_viewHeight;
|
height = m_viewHeight;
|
||||||
triX = 0;
|
triX = 0;
|
||||||
triY = (m_viewHeight-triSize)/2;
|
triY = (m_viewHeight-triSize)/2;
|
||||||
|
@ -1894,8 +1894,8 @@ struct Imgui
|
||||||
else if (ImguiBorder::Right == _border)
|
else if (ImguiBorder::Right == _border)
|
||||||
{
|
{
|
||||||
xx = m_viewWidth - borderSize;
|
xx = m_viewWidth - borderSize;
|
||||||
yy = 0;
|
yy = -1;
|
||||||
width = 2*borderSize;
|
width = 2*borderSize+1;
|
||||||
height = m_viewHeight;
|
height = m_viewHeight;
|
||||||
triX = m_viewWidth - triSize - 2;
|
triX = m_viewWidth - triSize - 2;
|
||||||
triY = (m_viewHeight-width)/2;
|
triY = (m_viewHeight-width)/2;
|
||||||
|
|
Loading…
Reference in a new issue