chore: Remove unused fields in the renderer metadata struct
This commit is contained in:
parent
5ea88e8c4a
commit
322e00b3b9
2 changed files with 5 additions and 12 deletions
15
app/main.go
15
app/main.go
|
@ -158,19 +158,14 @@ func mainEntrypoint(context.Context, *cli.Command) error {
|
|||
displayBuffer := openedDevice.CreateBuffer(displayMetadata.MaxWidth, displayMetadata.MaxHeight, libevdi.StridePixelFormatRGBA32, displayRect)
|
||||
|
||||
displayMetadata := &renderer.EvdiDisplayMetadata{
|
||||
EvdiNode: openedDevice,
|
||||
Rect: displayRect,
|
||||
Buffer: displayBuffer,
|
||||
ShouldRequestUpdate: true,
|
||||
}
|
||||
|
||||
displayMetadata.EventContext = &libevdi.EvdiEventContext{
|
||||
UpdateReadyHandler: func(bufferToBeUpdated int) {
|
||||
displayMetadata.IsUpdateReady = true
|
||||
},
|
||||
EvdiNode: openedDevice,
|
||||
Rect: displayRect,
|
||||
Buffer: displayBuffer,
|
||||
}
|
||||
|
||||
displayMetadata.EventContext = &libevdi.EvdiEventContext{}
|
||||
openedDevice.RegisterEventHandler(displayMetadata.EventContext)
|
||||
|
||||
evdiCards[currentDisplay] = displayMetadata
|
||||
}
|
||||
|
||||
|
|
|
@ -9,6 +9,4 @@ type EvdiDisplayMetadata struct {
|
|||
Rect *libevdi.EvdiDisplayRect
|
||||
Buffer *libevdi.EvdiBuffer
|
||||
EventContext *libevdi.EvdiEventContext
|
||||
ShouldRequestUpdate bool
|
||||
IsUpdateReady bool
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue