This commit is contained in:
Artur Gurgul 2025-08-26 08:51:37 +02:00
parent 91a36e03a8
commit c8b057e6a2
4 changed files with 33 additions and 18 deletions

View file

@ -88,7 +88,10 @@ module Qemu
# for testing only
defaults[:detach] = false
defaults[:display] = DisplayMode.fullscreen
defaults[:display] = DisplayMode.window
defaults[:display] = DisplayMode.none
opts = defaults.merge(options)
puts options
@ -112,17 +115,19 @@ module Qemu
else
#args += ["-device", "virtio-gpu-device"]
if opts[:display] == DisplayMode::fullscreen
#args += ["-display", "cocoa,full-screen=on"]
# #args += ["-display", "cocoa,full-screen=on"]
# # attempts:
# #args += ["-display", "cocoa,full-screen=on,retina=on"]
# # brew install gtk+3 sdl2
# # args += ["-display", "sdl,gl=on,full-screen=on"]
# #args += ["-display", "gtk,gl=on,full-screen=on"]
# #args += ["-display", "cocoa,full-screen=on"]
# #args += ["-display", "cocoa,gl=es,full-screen=on"]
# attempts:
#args += ["-display", "cocoa,full-screen=on,retina=on"]
# brew install gtk+3 sdl2
#### TODO: try make it work with custom build
# args += ["-device", "virtio-gpu-gl-pci"]
# args += ["-display", "sdl,gl=on,full-screen=on"]
args += ["-device", "virtio-gpu-gl-pci"]
args += ["-display", "sdl,gl=on,full-screen=on"]
#args += ["-display", "gtk,gl=on,full-screen=on"]
#args += ["-display", "cocoa,full-screen=on"]
#args += ["-display", "cocoa,gl=es,full-screen=on"]
args += ["-display", "cocoa,full-screen=on"]
else
args += ["-display", "cocoa"]
end
@ -135,7 +140,6 @@ module Qemu
args += ["-device", "virtio-mouse-device"]
args += ["-device", "virtio-gpu"]
#args += ['-nic', 'user,model=virtio-net-pci']
args += ["-device", "virtio-net,netdev=n0", "-netdev", "user,id=n0"]
# macOS vmnet (shares Macs LAN)