From ab53b72bf7067feb9dede0fd76b5a3cbc13863b9 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 2 Jun 2015 15:55:48 +0000 Subject: - old PNG conversion code (png2dib, dib2png) removed; - m_png.h also removed; - all calls of LoadImage replaced with CallService(MS_IMG_LOAD); - four invalid CloseHandle() calls removed; - massive code cleaning for Popup, HistoryStats & SplashScreen plugins git-svn-id: http://svn.miranda-ng.org/main/trunk@13974 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Popup/src/effects.cpp | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'plugins/Popup/src/effects.cpp') diff --git a/plugins/Popup/src/effects.cpp b/plugins/Popup/src/effects.cpp index 88b680a009..c0c6763ab3 100644 --- a/plugins/Popup/src/effects.cpp +++ b/plugins/Popup/src/effects.cpp @@ -50,24 +50,20 @@ public: this->frame = frame; stage = (frame * 2 > frameCount) ? 1 : 0; if (stage == 0) - { alpha = alpha0 + (alpha1 - alpha0) * frame * 2 / frameCount; - } else - { alpha = alpha0 + (alpha1 - alpha0) * (frame * 2 - frameCount) / frameCount; - } } virtual int getPixelAlpha(int x, int y) { - if (stage == 0) - { - if ((x / 16 + y / 16) % 2) return alpha0; + if (stage == 0) { + if ((x / 16 + y / 16) % 2) + return alpha0; return alpha; } - else - { - if ((x / 16 + y / 16) % 2) return alpha; + else { + if ((x / 16 + y / 16) % 2) + return alpha; return alpha1; } } -- cgit v1.2.3