Compare commits

..

1 Commits

Author SHA1 Message Date
Aveline 14327a666b
Merge 0baf6be8b5 into 63aa940f42 2025-10-01 21:44:32 +02:00
1 changed files with 2 additions and 0 deletions

View File

@ -118,6 +118,7 @@ func uiInit(rotation uint16) {
defer cgoLock.Unlock()
cRotation := C.u_int16_t(rotation)
defer C.free(unsafe.Pointer(&cRotation))
C.jetkvm_ui_init(cRotation)
}
@ -349,6 +350,7 @@ func uiDispSetRotation(rotation uint16) (bool, error) {
nativeLogger.Info().Uint16("rotation", rotation).Msg("setting rotation")
cRotation := C.u_int16_t(rotation)
defer C.free(unsafe.Pointer(&cRotation))
C.jetkvm_ui_set_rotation(cRotation)
return true, nil