diff options
author | Oliver Schneider <oliver@assarbad.net> | 2010-07-31 20:59:42 +0400 |
---|---|---|
committer | Oliver Schneider <oliver@assarbad.net> | 2010-07-31 20:59:42 +0400 |
commit | 22e79cfe655d66b8fc466cf2355db39bcbe61368 (patch) | |
tree | 47dec402a6a83e7a57bffafe6e3b5cd414b5fe00 /windirstat/item.cpp | |
parent | e78bd699150cb325c94fb6de1e060ef974862b29 (diff) |
- SRECT is the wrong solution to the problem, need to find something better to save space
Diffstat (limited to 'windirstat/item.cpp')
-rw-r--r-- | windirstat/item.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/windirstat/item.cpp b/windirstat/item.cpp index a197d1a..db4c9af 100644 --- a/windirstat/item.cpp +++ b/windirstat/item.cpp @@ -84,22 +84,12 @@ CItem::~CItem() CRect CItem::TmiGetRectangle() const { - CRect rc; - - rc.left = m_rect.left; - rc.top = m_rect.top; - rc.right = m_rect.right; - rc.bottom = m_rect.bottom; - - return rc; + return m_rect; } void CItem::TmiSetRectangle(const CRect& rc) { - m_rect.left = (short)rc.left; - m_rect.top = (short)rc.top; - m_rect.right = (short)rc.right; - m_rect.bottom = (short)rc.bottom; + m_rect = rc; } bool CItem::DrawSubitem(int subitem, CDC *pdc, CRect rc, UINT state, int *width, int *focusLeft) const |