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
This commit is contained in:
Aaron Giles 2008-03-05 15:14:58 +00:00
parent 31bb5d3f3c
commit a083bd20a9

View File

@ -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));
}
}