diff options
Diffstat (limited to 'nexgb/dri2')
-rw-r--r-- | nexgb/dri2/dri2.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nexgb/dri2/dri2.go b/nexgb/dri2/dri2.go index 1561832..df13661 100644 --- a/nexgb/dri2/dri2.go +++ b/nexgb/dri2/dri2.go @@ -86,9 +86,9 @@ func AttachFormatListBytes(buf []byte, list []AttachFormat) int { for _, item := range list { structBytes = item.Bytes() copy(buf[b:], structBytes) - b += xgb.Pad(len(structBytes)) + b += len(structBytes) } - return b + return xgb.Pad(b) } const ( @@ -291,9 +291,9 @@ func DRI2BufferListBytes(buf []byte, list []DRI2Buffer) int { for _, item := range list { structBytes = item.Bytes() copy(buf[b:], structBytes) - b += xgb.Pad(len(structBytes)) + b += len(structBytes) } - return b + return xgb.Pad(b) } const ( |