diff options
author | Dennis Kasprzyk <onestone@compiz-fusion.org> | 2008-08-27 15:08:10 +0200 |
---|---|---|
committer | Dennis Kasprzyk <onestone@compiz-fusion.org> | 2008-08-27 15:08:10 +0200 |
commit | ac82488c022665492713d633d832480063f67067 (patch) | |
tree | ab9e230bc8ad1055fe080506dfc784fc088c43cb /src/icon.cpp | |
parent | b92393878f81ec008ac7f383f63afe648bc5f80f (diff) | |
download | unity-window-decorator-ac82488c022665492713d633d832480063f67067.tar.gz unity-window-decorator-ac82488c022665492713d633d832480063f67067.tar.bz2 |
Moved composite handling and opengl painting into separate plugins.
Diffstat (limited to 'src/icon.cpp')
-rw-r--r-- | src/icon.cpp | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/icon.cpp b/src/icon.cpp index f15a278..5dcdd0d 100644 --- a/src/icon.cpp +++ b/src/icon.cpp @@ -2,7 +2,6 @@ CompIcon::CompIcon (CompScreen *screen, unsigned int width, unsigned int height) : - mTexture (screen), mWidth (width), mHeight (height), mData (new unsigned char[width * height * 4]), @@ -12,21 +11,7 @@ CompIcon::CompIcon (CompScreen *screen, unsigned int width, CompIcon::~CompIcon () { - free (mData); -} - -CompTexture & -CompIcon::texture () -{ - if (mUpdateTex) - { - mUpdateTex = false; - mTexture.reset (); - if (!mTexture.imageBufferToTexture (&mTexture, - reinterpret_cast<const char *> (mData), mWidth, mHeight)) - mTexture.reset (); - } - return mTexture; + delete mData; } unsigned int |