freebsd-ports/x11-themes/kde4-style-polyester/files/patch-style_polyester.cpp
Dmitry Marakasov 788a135f7c - Add LICENSE
- Fix build on 11.x

Approved by:	portmgr blanket
2016-06-09 12:23:07 +00:00

21 lines
942 B
C++

abs is not needed, as AnimInfo::animFrame is unsigned
--- style/polyester.cpp.orig 2009-02-17 18:23:09 UTC
+++ style/polyester.cpp
@@ -216,7 +216,7 @@ void PolyesterStyle::animate()
if( animWidgets[widget].active == true ) {
mustStop = false;
- if(abs(animWidgets[widget].animFrame) < ANIMATIONSTEPS) {
+ if(animWidgets[widget].animFrame < ANIMATIONSTEPS) {
if ( _animateButton ) {
animWidgets[widget].animFrame += animationDelta;
widget->repaint();
@@ -225,7 +225,7 @@ void PolyesterStyle::animate()
}
}
} else {
- if(abs(animWidgets[widget].animFrame) > 0) {
+ if(animWidgets[widget].animFrame != 0) {
mustStop = false;
if ( _animateButton ) {
animWidgets[widget].animFrame -= animationDelta;