diff options
Diffstat (limited to 'src/icon.cpp')
-rw-r--r-- | src/icon.cpp | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/icon.cpp b/src/icon.cpp index 46cd537..aa17e35 100644 --- a/src/icon.cpp +++ b/src/icon.cpp @@ -29,8 +29,7 @@ CompIcon::CompIcon (CompScreen *screen, unsigned int width, unsigned int height) : - mWidth (width), - mHeight (height), + mSize (width, height), mData (new unsigned char[width * height * 4]) { } @@ -40,16 +39,10 @@ CompIcon::~CompIcon () delete mData; } -unsigned int -CompIcon::width () const +const CompSize & +CompIcon::size () const { - return mWidth; -} - -unsigned int -CompIcon::height () const -{ - return mHeight; + return mSize; } unsigned char* |