diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-12-07 18:59:54 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-12-07 18:59:54 +0100 |
commit | c74458c98b3cba6ed33a63b9f02a10e9828f9097 (patch) | |
tree | dd6dd6796bd9553d74c10fc38af811a56751cc1d /sys/src/cmd/vmx/vga.c | |
parent | 1bb96d542cd43a027934ca372e0ab8c87f523db9 (diff) |
vmx: add -v|-w flag to control window creation behaviour
The -v flag now does not create a new rio window,
while -w flag does (restores the old behaviour).
This allows vmx to run under vncs and is in general
mode aligned to other emulators and programs.
Diffstat (limited to 'sys/src/cmd/vmx/vga.c')
-rw-r--r-- | sys/src/cmd/vmx/vga.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/cmd/vmx/vga.c b/sys/src/cmd/vmx/vga.c index 9fadff15e..eea5c8deb 100644 --- a/sys/src/cmd/vmx/vga.c +++ b/sys/src/cmd/vmx/vga.c @@ -737,7 +737,7 @@ vgafbparse(char *fbstring) void -vgainit(void) +vgainit(int new) { char buf[512]; int i; @@ -760,7 +760,7 @@ vgainit(void) sysfatal("got nil ptr for framebuffer"); } snprint(buf, sizeof(buf), "-dx %d -dy %d", maxw+50, maxh+50); - if(newwindow(buf) < 0 || initdraw(nil, nil, "vmx") < 0) + if((new && newwindow(buf) < 0) || initdraw(nil, nil, "vmx") < 0) sysfatal("failed to initialize graphics: %r"); screeninit(1); flushimage(display, 1); |