Split them onto multiple lines:
Code:
RECT Rect[] =
{
{ 0, 0, 32, 32 },
{ 0, 32, 32, 64 },
{ 32, 0, 64, 32 },
{ 32, 32, 64, 64 },
};
Or perhaps make a RECT-building function (may come in handly later too):
Code:
RECT BuildRect(LONG Left, LONG Top, LONG Right, LONG Bottom)
{
RECT Rect;
Rect.left = Left;
Rect.top = Top;
Rect.right = Right;
Rect.bottom = Bottom;
return Rect;
}
RECT Rect[4];
Rect[0] = BuildRect(0, 0, 32, 32);
Rect[1] = BuildRect(0, 32, 32, 64);
Rect[2] = BuildRect(32, 0, 64, 32);
Rect[3] = BuildRect(32, 32, 64, 64);
Or, to remove the overhead of function calls, define a macro:
Code:
#define BUILD_RECT(Rect, Left, Top, Right, Bottom) \
{ \
(Rect).left = (Left); \
(Rect).top = (Top); \
(Rect).right = (Right); \
(Rect).bottom = (Bottom); \
}
RECT Rect[4];
BUILD_RECT(Rect[0], 0, 0, 32, 32);
BUILD_RECT(Rect[1], 0, 32, 32, 64);
BUILD_RECT(Rect[2], 32, 0, 64, 32);
BUILD_RECT(Rect[3], 32, 32, 64, 64);