mirror of https://github.com/jetkvm/kvm.git
Compare commits
2 Commits
a4683e8431
...
23b3986233
| Author | SHA1 | Date |
|---|---|---|
|
|
23b3986233 | |
|
|
bdd6f4247b |
|
|
@ -118,7 +118,6 @@ func uiInit(rotation uint16) {
|
|||
defer cgoLock.Unlock()
|
||||
|
||||
cRotation := C.u_int16_t(rotation)
|
||||
defer C.free(unsafe.Pointer(&cRotation))
|
||||
|
||||
C.jetkvm_ui_init(cRotation)
|
||||
}
|
||||
|
|
@ -350,7 +349,6 @@ 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
|
||||
|
|
|
|||
Loading…
Reference in New Issue