summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}