summaryrefslogtreecommitdiff
path: root/src/icon.cpp
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@compiz-fusion.org>2008-10-13 23:09:58 +0200
committerDennis Kasprzyk <onestone@compiz-fusion.org>2008-10-13 23:09:58 +0200
commit972bf04a8bb5d10c90a5cec873cd4983a21a7dc2 (patch)
treee680b25287abfb174f3aa97e2d3dbd4d309408d2 /src/icon.cpp
parent2b86d3e6dcc1aa98249d7b9a6e78892fc60478c9 (diff)
downloadunity-window-decorator-972bf04a8bb5d10c90a5cec873cd4983a21a7dc2.tar.gz
unity-window-decorator-972bf04a8bb5d10c90a5cec873cd4983a21a7dc2.tar.bz2
CompIcon API cleanup.
Diffstat (limited to 'src/icon.cpp')
-rw-r--r--src/icon.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/icon.cpp b/src/icon.cpp
index 767d983..46cd537 100644
--- a/src/icon.cpp
+++ b/src/icon.cpp
@@ -31,8 +31,7 @@ CompIcon::CompIcon (CompScreen *screen, unsigned int width,
unsigned int height) :
mWidth (width),
mHeight (height),
- mData (new unsigned char[width * height * 4]),
- mUpdateTex (true)
+ mData (new unsigned char[width * height * 4])
{
}
@@ -42,13 +41,13 @@ CompIcon::~CompIcon ()
}
unsigned int
-CompIcon::width ()
+CompIcon::width () const
{
return mWidth;
}
unsigned int
-CompIcon::height ()
+CompIcon::height () const
{
return mHeight;
}
@@ -56,6 +55,5 @@ CompIcon::height ()
unsigned char*
CompIcon::data ()
{
- mUpdateTex = true;
return mData;
}