From a083bd20a92e09411dfae217fe5f39bb704b4b70 Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Wed, 5 Mar 2008 15:14:58 +0000 Subject: [PATCH] From: Mark Fugmann [mailto:sailorsat@t-online.de] Subject: "fix" for the "game information" resolutions. Hi. In 0.123u3 the bug "multiscreeninfo0123u2gre" was fixed, however it changed its behaviour as it now shows the "default" resolution the driver uses rather than the resolution the screen(s) actually use at the moment. As I don't know if this change was intentional I've attached a simple diff that changes from defstate.visarea to the real visible visarea. Greets, Ariane "SailorSat" Fugmann --- src/emu/ui.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/emu/ui.c b/src/emu/ui.c index 5da76f60c32..eaa225f16a8 100644 --- a/src/emu/ui.c +++ b/src/emu/ui.c @@ -1124,10 +1124,10 @@ int sprintf_game_info(char *buffer) bufptr += sprintf(bufptr, "Vector\n"); else bufptr += sprintf(bufptr, "%d " UTF8_MULTIPLY " %d (%s) %f" UTF8_NBSP "Hz\n", - scrconfig->defstate.visarea.max_x - scrconfig->defstate.visarea.min_x + 1, - scrconfig->defstate.visarea.max_y - scrconfig->defstate.visarea.min_y + 1, + Machine->screen[index].visarea.max_x - Machine->screen[index].visarea.min_x + 1, + Machine->screen[index].visarea.max_y - Machine->screen[index].visarea.min_y + 1, (Machine->gamedrv->flags & ORIENTATION_SWAP_XY) ? "V" : "H", - ATTOSECONDS_TO_HZ(scrconfig->defstate.refresh)); + ATTOSECONDS_TO_HZ(Machine->screen[index].refresh)); } }