]> git.pld-linux.org Git - packages/ilixi.git/commitdiff
- upstrea fix for C++98 compiler error
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 12 Oct 2014 10:29:28 +0000 (12:29 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 12 Oct 2014 10:29:42 +0000 (12:29 +0200)
c++98.patch [new file with mode: 0644]
ilixi.spec

diff --git a/c++98.patch b/c++98.patch
new file mode 100644 (file)
index 0000000..508c309
--- /dev/null
@@ -0,0 +1,82 @@
+commit 5a5791ca4ab0237f81fd2c180471bc20cf109c2a
+Author: Tarik Sekmen <tarik@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;
index db9e726897e8ca0b7baad5b976544eb4eb0a3c68..294c19d3693661f1856ef6abcada857bb1bf142d 100644 (file)
@@ -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}
This page took 0.04715 seconds and 4 git commands to generate.