Skip to content

Commit

Permalink
specification says int32
Browse files Browse the repository at this point in the history
  • Loading branch information
esiqveland committed May 26, 2024
1 parent 4b61129 commit 4040333
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions notification.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,20 +72,20 @@ func HintImageFilePath(imageAbsolutePath string) Hint {
// dbusImageData encodes Hint for "image-data" iiibiiay
// Data format: https://specifications.freedesktop.org/notification-spec/latest/ar01s05.html
type dbusImageData struct {
Width int // i
Height int // i
RowStride int // i
Width int32 // i
Height int32 // i
RowStride int32 // i
HasAlpha bool // b
BitsPerSample int // i
Samples int // i
BitsPerSample int32 // i
Samples int32 // i
Image []byte // ay
}

func HintImageDataRGBA(img *image.RGBA) Hint {
imageData := dbusImageData{
Width: img.Rect.Max.X,
Height: img.Rect.Max.Y,
RowStride: img.Stride,
Width: int32(img.Rect.Max.X),
Height: int32(img.Rect.Max.Y),
RowStride: int32(img.Stride),
HasAlpha: true,
BitsPerSample: 8,
Samples: 4,
Expand Down

0 comments on commit 4040333

Please sign in to comment.