summaryrefslogtreecommitdiff
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
parent2b86d3e6dcc1aa98249d7b9a6e78892fc60478c9 (diff)
downloadunity-window-decorator-972bf04a8bb5d10c90a5cec873cd4983a21a7dc2.tar.gz
unity-window-decorator-972bf04a8bb5d10c90a5cec873cd4983a21a7dc2.tar.bz2
CompIcon API cleanup.
-rw-r--r--include/core/icon.h5
-rw-r--r--src/icon.cpp8
2 files changed, 5 insertions, 8 deletions
diff --git a/include/core/icon.h b/include/core/icon.h
index 9a7733f..3e60677 100644
--- a/include/core/icon.h
+++ b/include/core/icon.h
@@ -35,15 +35,14 @@ class CompIcon {
CompIcon (CompScreen *screen, unsigned width, unsigned int height);
~CompIcon ();
- unsigned int width ();
- unsigned int height ();
+ unsigned int width () const;
+ unsigned int height () const;
unsigned char* data ();
private:
int mWidth;
unsigned int mHeight;
unsigned char *mData;
- bool mUpdateTex;
};
#endif
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;
}