diff options
Diffstat (limited to 'nexgb/xf86vidmode/xf86vidmode.go')
-rw-r--r-- | nexgb/xf86vidmode/xf86vidmode.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nexgb/xf86vidmode/xf86vidmode.go b/nexgb/xf86vidmode/xf86vidmode.go index 55ca67b..5a3f63d 100644 --- a/nexgb/xf86vidmode/xf86vidmode.go +++ b/nexgb/xf86vidmode/xf86vidmode.go @@ -418,9 +418,9 @@ func ModeInfoListBytes(buf []byte, list []ModeInfo) 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) } // BadModeUnsuitable is the error number for a BadModeUnsuitable. |