[packages/ilixi] - upstrea fix for C++98 compiler error
baggins
baggins at pld-linux.org
Sun Oct 12 12:29:51 CEST 2014
commit 25fca757150ff9daeb9e36c5bd1d98e4e301eb89
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Oct 12 12:29:28 2014 +0200
- upstrea fix for C++98 compiler error
c++98.patch | 82 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ilixi.spec | 2 ++
2 files changed, 84 insertions(+)
---
diff --git a/ilixi.spec b/ilixi.spec
index db9e726..294c19d 100644
--- a/ilixi.spec
+++ b/ilixi.spec
@@ -20,6 +20,7 @@ Group: Libraries
Source0: http://www.directfb.org/downloads/Libs/%{name}-%{version}.tar.gz
# Source0-md5: c1cf8c2b0e31870df2970ff2f4a42de2
Patch0: %{name}-link.patch
+Patch1: c++98.patch
URL: http://www.ilixi.org/
BuildRequires: DirectFB-devel >= 1:1.6.3
%{?with_wnn:BuildRequires: FreeWnn-devel}
@@ -90,6 +91,7 @@ Statyczna biblioteka ilixi.
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%build
%{__libtoolize}
diff --git a/c++98.patch b/c++98.patch
new file mode 100644
index 0000000..508c309
--- /dev/null
+++ b/c++98.patch
@@ -0,0 +1,82 @@
+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
++++ b/ilixi/graphics/Surface.cpp
+@@ -175,7 +175,11 @@ void
+ Surface::setGeometry(int x, int y, int width, int height)
+ {
+ ILOG_TRACE(ILX_SURFACE);
+- DFBRectangle r = { x, y, width, height };
++ DFBRectangle r;
++ r.x = x;
++ r.y = y;
++ r.w = width;
++ r.h = height;
+ if (_parentSurface)
+ {
+ DFBResult ret = _dfbSurface->MakeSubSurface(_dfbSurface, _parentSurface, &r);
+@@ -253,25 +253,41 @@ Surface::flip(const Rectangle& rect)
+
+ if (r.y1)
+ {
+- DFBRectangle rect = { 0, 0, w, r.y1 };
++ DFBRectangle rect;
++ rect.x = 0;
++ rect.y = 0;
++ rect.w = w;
++ rect.h = r.y1;
+ _dfbSurface->Blit(_dfbSurface, _dfbSurface, &rect, rect.x, rect.y);
+ }
+
+ if (r.y2 < h - 1)
+ {
+- DFBRectangle rect = { 0, r.y2 + 1, w, h - r.y2 - 1 };
++ DFBRectangle rect;
++ rect.x = 0;
++ rect.y = r.y2 + 1;
++ rect.w = w;
++ rect.h = h - r.y2 - 1;
+ _dfbSurface->Blit(_dfbSurface, _dfbSurface, &rect, rect.x, rect.y);
+ }
+
+ if (r.x1)
+ {
+- DFBRectangle rect = { 0, r.y1, r.x1, r.y2 - r.y1 + 1 };
++ DFBRectangle rect;
++ rect.x = 0;
++ rect.y = r.y1;
++ rect.w = r.x1;
++ rect.h = r.y2 - r.y1 + 1;
+ _dfbSurface->Blit(_dfbSurface, _dfbSurface, &rect, rect.x, rect.y);
+ }
+
+ if (r.x2 < w - 1)
+ {
+- DFBRectangle rect = { r.x2 + 1, r.y1, w - r.x2 - 1, r.y2 - r.y1 + 1 };
++ DFBRectangle rect;
++ rect.x = r.x2 + 1;
++ rect.y = r.y1;
++ rect.w = w - r.x2 - 1;
++ rect.h = r.y2 - r.y1 + 1;
+ _dfbSurface->Blit(_dfbSurface, _dfbSurface, &rect, rect.x, rect.y);
+ }
+
+@@ -520,7 +524,11 @@ Surface::setStereoGeometry(const Rectangle& geometry, int zIndex)
+ void
+ Surface::setStereoGeometry(int x, int y, int width, int height, int zIndex)
+ {
+- DFBRectangle r = { x, y, width, height };
++ DFBRectangle r;
++ r.x = x;
++ r.y = y;
++ r.w = width;
++ r.h = height;
+ if (_parentSurface)
+ {
+ r.x += zIndex;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ilixi.git/commitdiff/25fca757150ff9daeb9e36c5bd1d98e4e301eb89
More information about the pld-cvs-commit
mailing list