mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
Fixing imgui scroll area scissoring.
This commit is contained in:
parent
9f31587b09
commit
1c16d97c27
1 changed files with 5 additions and 5 deletions
|
@ -685,7 +685,7 @@ struct Imgui
|
|||
|
||||
m_widgetX = _x + SCROLL_AREA_PADDING;
|
||||
m_widgetY = _y + AREA_HEADER + (*_scroll);
|
||||
m_widgetW = _width - SCROLL_AREA_PADDING * 4;
|
||||
m_widgetW = _width - SCROLL_AREA_PADDING * 4 - 2;
|
||||
|
||||
m_scrollTop = _y + AREA_HEADER;
|
||||
m_scrollBottom = _y + _height;
|
||||
|
@ -720,14 +720,14 @@ struct Imgui
|
|||
|
||||
nvgScissor(m_nvg
|
||||
, float(_x + SCROLL_AREA_PADDING)
|
||||
, float(_y + AREA_HEADER)
|
||||
, float(_width - SCROLL_AREA_PADDING * 4)
|
||||
, float(_y + AREA_HEADER - 1)
|
||||
, float(_width - SCROLL_AREA_PADDING * 3)
|
||||
, float(_height - AREA_HEADER - SCROLL_AREA_PADDING)
|
||||
);
|
||||
|
||||
m_scissor = bgfx::setScissor(uint16_t(_x + SCROLL_AREA_PADDING)
|
||||
, uint16_t(_y + AREA_HEADER)
|
||||
, uint16_t(_width - SCROLL_AREA_PADDING * 4)
|
||||
, uint16_t(_y + AREA_HEADER - 1)
|
||||
, uint16_t(_width - SCROLL_AREA_PADDING * 3)
|
||||
, uint16_t(_height - AREA_HEADER - SCROLL_AREA_PADDING)
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue