aboutsummaryrefslogtreecommitdiff
path: root/nexgb/xvmc/xvmc.go
diff options
context:
space:
mode:
Diffstat (limited to 'nexgb/xvmc/xvmc.go')
-rw-r--r--nexgb/xvmc/xvmc.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/nexgb/xvmc/xvmc.go b/nexgb/xvmc/xvmc.go
index f0988eb..5ab7108 100644
--- a/nexgb/xvmc/xvmc.go
+++ b/nexgb/xvmc/xvmc.go
@@ -166,9 +166,9 @@ func SurfaceInfoListBytes(buf []byte, list []SurfaceInfo) 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)
}
// Skipping definition for base type 'Bool'