Detect struct array strides from BDA pointer decorations

This commit is contained in:
baldurk
2026-08-07 16:26:33 +01:00
parent d3a366e759
commit 62b088319a
4 changed files with 38 additions and 9 deletions
+1 -2
View File
@@ -1147,8 +1147,7 @@ bool RichResourceTextMouseEvent(const QWidget *owner, const QVariant &var, QRect
if(!ptrType.members.isEmpty())
{
Packing::Rules pack =
BufferFormatter::EstimatePackingRules(ResourceId(), ptrType.members);
Packing::Rules pack = BufferFormatter::EstimatePackingRules(ResourceId(), ptrType);
// for scalar-wrapped structs (generated by 'float *foo' type declarations) use scalar
// packing by default as that's probably what people will want most often and if we