[packages/ilixi] - more c++98 fixes
baggins
baggins at pld-linux.org
Sun Oct 12 12:39:35 CEST 2014
commit c1a4e61dd1c91135afec67d08528ed68511d7b79
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Oct 12 12:39:26 2014 +0200
- more c++98 fixes
c++98.patch | 35 +++++++++++++++++++++++++++++------
1 file changed, 29 insertions(+), 6 deletions(-)
---
diff --git a/c++98.patch b/c++98.patch
index 508c309..926654d 100644
--- a/c++98.patch
+++ b/c++98.patch
@@ -1,9 +1,3 @@
-commit 5a5791ca4ab0237f81fd2c180471bc20cf109c2a
-Author: Tarik Sekmen <tarik at directfb.org>
-Date: Tue Apr 15 13:40:07 2014 +0300
-
- Surface: Minor fix for C++98 compiler error.
-
diff --git a/ilixi/graphics/Surface.cpp b/ilixi/graphics/Surface.cpp
index 7489725..84b789f 100644
--- a/ilixi/graphics/Surface.cpp
@@ -80,3 +74,32 @@ index 7489725..84b789f 100644
if (_parentSurface)
{
r.x += zIndex;
+diff --git a/ilixi/types/Rectangle.cpp b/ilixi/types/Rectangle.cpp
+index 9aa5171..1de5b91 100644
+--- a/ilixi/types/Rectangle.cpp
++++ b/ilixi/types/Rectangle.cpp
+@@ -341,14 +341,22 @@ DFBBox Rectangle::dfbBox() const
+ DFBRectangle
+ Rectangle::dfbRect() const
+ {
+- DFBRectangle r = { x(), y(), width(), height() };
++ DFBRectangle r;
++ r.x = x();
++ r.y = y();
++ r.w = width();
++ r.h = height();
+ return r;
+ }
+
+ DFBRegion
+ Rectangle::dfbRegion() const
+ {
+- DFBRegion r = { x(), y(), right() - 1, bottom() - 1 };
++ DFBRegion r;
++ r.x1 = x();
++ r.y1 = y();
++ r.x2 = right() - 1;
++ r.y2 = bottom() - 1;
+ return r;
+ }
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ilixi.git/commitdiff/c1a4e61dd1c91135afec67d08528ed68511d7b79
More information about the pld-cvs-commit
mailing list