diff options
author | George Hazan <george.hazan@gmail.com> | 2015-08-16 23:08:55 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-08-16 23:08:55 +0000 |
commit | 0c060267ccea726d5c2c2fd1e45d1f16965fb01e (patch) | |
tree | ef15e5533dbda23f63e423056b9d746e5d643ae3 /plugins/Popup/src/effects.cpp | |
parent | af58213e6005cbf4b9ce8be2ad66eb6eae3df4a9 (diff) |
code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@14975 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Popup/src/effects.cpp')
-rw-r--r-- | plugins/Popup/src/effects.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/Popup/src/effects.cpp b/plugins/Popup/src/effects.cpp index ede4d633f1..dfc8139d08 100644 --- a/plugins/Popup/src/effects.cpp +++ b/plugins/Popup/src/effects.cpp @@ -37,17 +37,17 @@ protected: int alpha;
public:
- virtual void beginEffect(int w, int h, int alpha0, int alpha1, int frameCount)
+ virtual void beginEffect(int _w, int _h, int _alpha0, int _alpha1, int _frameCount)
{
- this->w = w;
- this->h = h;
- this->alpha0 = alpha0;
- this->alpha1 = alpha1;
- this->frameCount = frameCount;
+ w = _w;
+ h = _h;
+ alpha0 = _alpha0;
+ alpha1 = _alpha1;
+ frameCount = _frameCount;
}
- virtual void beginFrame(int frame)
+ virtual void beginFrame(int _frame)
{
- this->frame = frame;
+ frame = _frame;
stage = (frame * 2 > frameCount) ? 1 : 0;
if (stage == 0)
alpha = alpha0 + (alpha1 - alpha0) * frame * 2 / frameCount;
|