Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: source/gui/COList.cpp
- ===================================================================
- --- source/gui/COList.cpp (revision 16968)
- +++ source/gui/COList.cpp (working copy)
- @@ -158,11 +158,11 @@
- {
- float width = m_ObjectsDefs[def].m_Width;
- // Check if it's a decimal value, and if so, assume relative positioning.
- if (m_ObjectsDefs[def].m_Width < 1 && m_ObjectsDefs[def].m_Width > 0)
- width *= m_TotalAvalibleColumnWidth;
- - CPos leftTopCorner = m_CachedActualSize.TopLeft() + CPos(xpos, 4);
- + CPos leftTopCorner = m_CachedActualSize.TopLeft() + CPos(xpos, 0);
- if (mouse.x >= leftTopCorner.x &&
- mouse.x < leftTopCorner.x + width &&
- mouse.y < leftTopCorner.y + m_HeadingHeight)
- {
- if (def != m_SelectedDef)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement