1 .././src/dfb/bitmap.cpp:626:64: error: in C++98 'r' must be initialized by constructor, not by '{...}'
2 DFBRectangle r = { rect.x, rect.y, rect.width, rect.height };
4 .././src/dfb/dc.cpp:707:47: error: in C++98 'srcRect' must be initialized by constructor, not by '{...}'
5 DFBRectangle srcRect = { srcx, srcy, w, h };
7 .././src/dfb/dc.cpp:709:61: error: in C++98 'dstRect' must be initialized by constructor, not by '{...}'
8 XLOG2DEVREL(w), YLOG2DEVREL(h) };
10 .././src/dfb/dcclient.cpp:170:62: error: in C++98 'dfbrect' must be initialized by constructor, not by '{...}'
11 DFBRectangle dfbrect = { r.x, r.y, r.width, r.height };
13 .././src/dfb/nonownedwnd.cpp:348:67: error: in C++98 'r' must be initialized by constructor, not by '{...}'
14 paintedRect.GetRight(), paintedRect.GetBottom()};
16 .././src/dfb/window.cpp:153:55: error: in C++98 'rect' must be initialized by constructor, not by '{...}'
17 DFBRectangle rect = { r.x, r.y, r.width, r.height };
19 .././src/dfb/window.cpp:762:60: error: in C++98 'dfbRect' must be initialized by constructor, not by '{...}'
20 orect.width, orect.height };
23 --- wxWidgets-3.0.2/src/dfb/bitmap.cpp.orig 2014-10-06 23:33:44.000000000 +0200
24 +++ wxWidgets-3.0.2/src/dfb/bitmap.cpp 2017-04-08 21:02:22.420076242 +0200
27 // NB: DirectFB subsurfaces share the same pixels buffer, so we must
28 // clone the obtained subsurface
29 - DFBRectangle r = { rect.x, rect.y, rect.width, rect.height };
31 + r.x = rect.x; r.y = rect.y; r.w = rect.width; r.h = rect.height;
32 return wxBitmap(M_BITMAP->m_surface->GetSubSurface(&r)->Clone());
35 --- wxWidgets-3.0.2/src/dfb/dc.cpp.orig 2014-10-06 23:33:44.000000000 +0200
36 +++ wxWidgets-3.0.2/src/dfb/dc.cpp 2017-04-08 22:30:42.656682391 +0200
38 CalcBoundingBox(dstx, dsty);
39 CalcBoundingBox(dstx + w, dsty + h);
41 - DFBRectangle srcRect = { srcx, srcy, w, h };
42 - DFBRectangle dstRect = { XLOG2DEV(dstx), YLOG2DEV(dsty),
43 - XLOG2DEVREL(w), YLOG2DEVREL(h) };
44 + DFBRectangle srcRect; srcRect.x = srcx; srcRect.y = srcy; srcRect.w = w; srcRect.h = h;
45 + DFBRectangle dstRect; dstRect.x = XLOG2DEV(dstx); dstRect.y = YLOG2DEV(dsty);
46 + dstRect.w = XLOG2DEVREL(w); dstRect.h = YLOG2DEVREL(h);
48 wxIDirectFBSurfacePtr dst(m_surface);
50 --- wxWidgets-3.0.2/src/dfb/dcclient.cpp.orig 2014-10-06 23:33:44.000000000 +0200
51 +++ wxWidgets-3.0.2/src/dfb/dcclient.cpp 2017-04-08 22:35:18.586679239 +0200
56 - DFBRectangle dfbrect = { r.x, r.y, r.width, r.height };
57 + DFBRectangle dfbrect; dfbrect.x = r.x; dfbrect.y = r.y; dfbrect.w = r.width; dfbrect.h = r.height;
58 surface = win->GetDfbSurface()->GetSubSurface(&dfbrect);
60 // if the DC was clipped thanks to rectPaint, we must adjust the
61 --- wxWidgets-3.0.2/src/dfb/nonownedwnd.cpp.orig 2014-10-06 23:33:44.000000000 +0200
62 +++ wxWidgets-3.0.2/src/dfb/nonownedwnd.cpp 2017-04-08 22:37:43.196677588 +0200
64 // do FlipToFront() for each of them, because that could result in visible
65 // updating of the screen; instead, we prefer to flip everything at once.
67 - DFBRegion r = {paintedRect.GetLeft(), paintedRect.GetTop(),
68 - paintedRect.GetRight(), paintedRect.GetBottom()};
69 + DFBRegion r; r.x1 = paintedRect.GetLeft(); r.y1 = paintedRect.GetTop();
70 + r.x2 = paintedRect.GetRight(); r.y2 = paintedRect.GetBottom();
71 DFBRegion *rptr = (winRect == paintedRect) ? NULL : &r;
73 GetDfbSurface()->FlipToFront(rptr);
74 --- wxWidgets-3.0.2/src/dfb/window.cpp.orig 2014-10-06 23:33:44.000000000 +0200
75 +++ wxWidgets-3.0.2/src/dfb/window.cpp 2017-04-08 22:40:07.890009269 +0200
79 AdjustForParentClientOrigin(r.x, r.y, 0);
80 - DFBRectangle rect = { r.x, r.y, r.width, r.height };
81 + DFBRectangle rect; rect.x = r.x; rect.y = r.y; rect.w = r.width; rect.h = r.height;
83 return parentSurface->GetSubSurface(&rect);
86 if ( overlay->IsEmpty() )
87 continue; // nothing to paint
89 - DFBRectangle dfbRect = { orect.x - orectOrig.x, orect.y - orectOrig.y,
90 - orect.width, orect.height };
91 + DFBRectangle dfbRect; dfbRect.x = orect.x - orectOrig.x; dfbRect.y = orect.y - orectOrig.y;
92 + dfbRect.w = orect.width; dfbRect.h = orect.height;
95 overlay->GetDirectFBSurface(),