On Sat, Jan 05, 2013 at 02:23:43AM +1300, Ralph Versteegen wrote: > On 4 January 2013 07:36, James Paige <[email protected]> wrote: > > On Thu, Jan 03, 2013 at 10:27:01AM -0800, Adam Perry wrote: > >> It seems like there are several things F12 won't actually screenshot. > >> I'm > >> seeing issues with the following: > >> > >> - Attempting to capture the equipment menu gives only the main menu > >> - Attempting to capture item targeting (i.e. who will use the Herb) > >> gives > >> only the inventory screen > >> > >> There are probably other issues with built-in menus. I would've guessed > >> that F12 just took a screen dump, so this is puzzling. > >> > >> If it helps, the game in question is DUNGEONMEN: Men of Dungeons. > > > > Hmmm... looking at the screenshot code, it appears that screenshots > > always use the page indicated by the vpage global variable instead of > > the last page used by setvispage. That explains why the bug is > > happening, although I'll have to think a little more about how to fix > > it. Should be simple... I just don't want to screw anything up in the > > process, or accidentally make setvispage slower. > > > > Thanks for spotting the bug! > > > > --- > > James > > It's possible that there's a case or two where using the last page > passed to setvispage instead of vpage breaks screenshotting something. > However browsing around a bit just now, I found lots of places where > it would fix screenshotting, and no places where it would break it.
Ralph figured this one out. It actually wasn't related to setvispage, it was because the menus were repainting the background in the wrong place, after the drawing instead of before the drawing. --- James _______________________________________________ Ohrrpgce mailing list [email protected] http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
