Revision 49aa4058 qemu-char.c
b/qemu-char.c | ||
---|---|---|
2989 | 2989 |
if (strstart(filename, "vc", &p)) { |
2990 | 2990 |
qemu_opt_set(opts, "backend", "vc"); |
2991 | 2991 |
if (*p == ':') { |
2992 |
if (sscanf(p+1, "%8[0-9]x%8[0-9]", width, height) == 2) {
|
|
2992 |
if (sscanf(p+1, "%7[0-9]x%7[0-9]", width, height) == 2) {
|
|
2993 | 2993 |
/* pixels */ |
2994 | 2994 |
qemu_opt_set(opts, "width", width); |
2995 | 2995 |
qemu_opt_set(opts, "height", height); |
2996 |
} else if (sscanf(p+1, "%8[0-9]Cx%8[0-9]C", width, height) == 2) {
|
|
2996 |
} else if (sscanf(p+1, "%7[0-9]Cx%7[0-9]C", width, height) == 2) {
|
|
2997 | 2997 |
/* chars */ |
2998 | 2998 |
qemu_opt_set(opts, "cols", width); |
2999 | 2999 |
qemu_opt_set(opts, "rows", height); |
Also available in: Unified diff