From 86922b4655844cc771512c9dee9822c1055dfd77 Mon Sep 17 00:00:00 2001 From: Maks Naumov Date: Mon, 15 Sep 2014 21:38:42 +0300 Subject: [PATCH] QRegion: Reorganise members to reduce padding in EdgeTableEntry On 64-bit platforms: 64 -> 56 bytes. On 32-bit platforms it's still the same size (44 bytes). Change-Id: I681b9385ee3bc7601c1e8036efd6544471d1e058 Reviewed-by: Thiago Macieira --- src/gui/painting/qregion.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/painting/qregion.cpp b/src/gui/painting/qregion.cpp index 1e778af3f6..26f4dfd3cf 100644 --- a/src/gui/painting/qregion.cpp +++ b/src/gui/painting/qregion.cpp @@ -2955,11 +2955,11 @@ typedef struct { typedef struct _EdgeTableEntry { int ymax; /* ycoord at which we exit this edge. */ + int ClockWise; /* flag for winding number rule */ BRESINFO bres; /* Bresenham info to run the edge */ struct _EdgeTableEntry *next; /* next in the list */ struct _EdgeTableEntry *back; /* for insertion sort */ struct _EdgeTableEntry *nextWETE; /* for winding num rule */ - int ClockWise; /* flag for winding number rule */ } EdgeTableEntry;