[ToME 1.5.10] Screenshots for saved games capture Save and g

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
BugReporter
Higher
Posts: 62
Joined: Wed Jun 06, 2018 10:53 am

[ToME 1.5.10] Screenshots for saved games capture Save and g

#1 Post by BugReporter »

Short description.
Screenshots for saved games capture Save and go back to main menu? window.
Actual result.
In Load Game menu characters' screenshots appear with save and go back to main menu captured.
Expected result.
In Load Game menu characters' screenshots appear without other windows captured.
Steps to reproduce.
1. Create a character Test.
2. Press ESC to open Game Menu and select Main Menu. Confirm.
3. In Main Menu select Load Game.
4. Select Test character.
Game version.
1.5.10 for windows from ToME site.
Comment.
It also works for Save Game and Exit Game. At first I thought it works the way it was designed to be, but after looking at the code and some testing I think it is a bug. Maybe there is something that causes the issue on my computer because I only found a very old topic with the same problem.
Adding another core.display.forceRedraw() ...\mod\class\Game.lua seems to fix the issue for some reason.

Code: Select all

function _M:takeScreenshot(for_savefile)
	if for_savefile then
		self.suppressDialogs = true
		core.display.forceRedraw()
		core.display.forceRedraw()

		local x, y = self.w / 4, self.h / 4

Post Reply