From: Jan Rękorajski Date: Sun, 12 Oct 2014 10:39:26 +0000 (+0200) Subject: - more c++98 fixes X-Git-Tag: auto/th/ilixi-1.0.0-6~3 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=c1a4e61dd1c91135afec67d08528ed68511d7b79;p=packages%2Filixi.git - more c++98 fixes --- 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 -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; + } +