src/osd/winui/properties.c
| r4951 | r4952 | |
| 716 | 716 | else |
| 717 | 717 | { |
| 718 | 718 | const device_config *screen = video_screen_first(config); |
| 719 | | const screen_config *scrconfig = screen->inline_config; |
| 720 | 719 | |
| 721 | | if (drivers[nIndex]->flags & ORIENTATION_SWAP_XY) |
| 722 | | { |
| 723 | | sprintf(buf,"%d x %d (V) %f Hz", |
| 724 | | scrconfig->visarea.max_y - scrconfig->visarea.min_y + 1, |
| 720 | if (screen != NULL) |
| 721 | { |
| 722 | const screen_config *scrconfig = screen->inline_config; |
| 723 | |
| 724 | if (drivers[nIndex]->flags & ORIENTATION_SWAP_XY) |
| 725 | { |
| 726 | sprintf(buf,"%d x %d (V) %f Hz", |
| 727 | scrconfig->visarea.max_y - scrconfig->visarea.min_y + 1, |
| 725 | 728 | scrconfig->visarea.max_x - scrconfig->visarea.min_x + 1, |
| 726 | 729 | ATTOSECONDS_TO_HZ(scrconfig->refresh)); |
| 727 | | } else { |
| 728 | | sprintf(buf,"%d x %d (H) %f Hz", |
| 730 | } |
| 731 | else |
| 732 | { |
| 733 | sprintf(buf,"%d x %d (H) %f Hz", |
| 729 | 734 | scrconfig->visarea.max_x - scrconfig->visarea.min_x + 1, |
| 730 | 735 | scrconfig->visarea.max_y - scrconfig->visarea.min_y + 1, |
| 731 | 736 | ATTOSECONDS_TO_HZ(scrconfig->refresh)); |
| 737 | } |
| 732 | 738 | } |
| 733 | 739 | } |
| 734 | 740 | /* Free the structure */ |