Revision a171fe39 vl.c
b/vl.c | ||
---|---|---|
188 | 188 |
int acpi_enabled = 1; |
189 | 189 |
int fd_bootchk = 1; |
190 | 190 |
int no_reboot = 0; |
191 |
int graphic_rotate = 0; |
|
191 | 192 |
int daemonize = 0; |
192 | 193 |
const char *option_rom[MAX_OPTION_ROMS]; |
193 | 194 |
int nb_option_roms; |
... | ... | |
524 | 525 |
{ |
525 | 526 |
QEMUPutMouseEvent *mouse_event; |
526 | 527 |
void *mouse_event_opaque; |
528 |
int width; |
|
527 | 529 |
|
528 | 530 |
if (!qemu_put_mouse_event_current) { |
529 | 531 |
return; |
... | ... | |
535 | 537 |
qemu_put_mouse_event_current->qemu_put_mouse_event_opaque; |
536 | 538 |
|
537 | 539 |
if (mouse_event) { |
538 |
mouse_event(mouse_event_opaque, dx, dy, dz, buttons_state); |
|
540 |
if (graphic_rotate) { |
|
541 |
if (qemu_put_mouse_event_current->qemu_put_mouse_event_absolute) |
|
542 |
width = 0x7fff; |
|
543 |
else |
|
544 |
width = graphic_width; |
|
545 |
mouse_event(mouse_event_opaque, |
|
546 |
width - dy, dx, dz, buttons_state); |
|
547 |
} else |
|
548 |
mouse_event(mouse_event_opaque, |
|
549 |
dx, dy, dz, buttons_state); |
|
539 | 550 |
} |
540 | 551 |
} |
541 | 552 |
|
... | ... | |
6422 | 6433 |
"-m megs set virtual RAM size to megs MB [default=%d]\n" |
6423 | 6434 |
"-smp n set the number of CPUs to 'n' [default=1]\n" |
6424 | 6435 |
"-nographic disable graphical output and redirect serial I/Os to console\n" |
6436 |
"-portrait rotate graphical output 90 deg left (only PXA LCD)\n" |
|
6425 | 6437 |
#ifndef _WIN32 |
6426 | 6438 |
"-k language use keyboard layout (for example \"fr\" for French)\n" |
6427 | 6439 |
#endif |
... | ... | |
6556 | 6568 |
#endif |
6557 | 6569 |
QEMU_OPTION_m, |
6558 | 6570 |
QEMU_OPTION_nographic, |
6571 |
QEMU_OPTION_portrait, |
|
6559 | 6572 |
#ifdef HAS_AUDIO |
6560 | 6573 |
QEMU_OPTION_audio_help, |
6561 | 6574 |
QEMU_OPTION_soundhw, |
... | ... | |
6636 | 6649 |
#endif |
6637 | 6650 |
{ "m", HAS_ARG, QEMU_OPTION_m }, |
6638 | 6651 |
{ "nographic", 0, QEMU_OPTION_nographic }, |
6652 |
{ "portrait", 0, QEMU_OPTION_portrait }, |
|
6639 | 6653 |
{ "k", HAS_ARG, QEMU_OPTION_k }, |
6640 | 6654 |
#ifdef HAS_AUDIO |
6641 | 6655 |
{ "audio-help", 0, QEMU_OPTION_audio_help }, |
... | ... | |
7167 | 7181 |
pstrcpy(monitor_device, sizeof(monitor_device), "stdio"); |
7168 | 7182 |
nographic = 1; |
7169 | 7183 |
break; |
7184 |
case QEMU_OPTION_portrait: |
|
7185 |
graphic_rotate = 1; |
|
7186 |
break; |
|
7170 | 7187 |
case QEMU_OPTION_kernel: |
7171 | 7188 |
kernel_filename = optarg; |
7172 | 7189 |
break; |
... | ... | |
7658 | 7675 |
fprintf(stderr, "qemu: could not open SD card image %s\n", |
7659 | 7676 |
sd_filename); |
7660 | 7677 |
} else |
7661 |
qemu_key_check(bs, sd_filename);
|
|
7678 |
qemu_key_check(sd_bdrv, sd_filename);
|
|
7662 | 7679 |
} |
7663 | 7680 |
|
7664 | 7681 |
register_savevm("timer", 0, 2, timer_save, timer_load, NULL); |
Also available in: Unified diff