Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/windirstat.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Schneider <oliver@assarbad.net>2010-07-31 20:59:42 +0400
committerOliver Schneider <oliver@assarbad.net>2010-07-31 20:59:42 +0400
commit22e79cfe655d66b8fc466cf2355db39bcbe61368 (patch)
tree47dec402a6a83e7a57bffafe6e3b5cd414b5fe00 /windirstat/item.cpp
parente78bd699150cb325c94fb6de1e060ef974862b29 (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.cpp14
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