ToME: the Tales of Maj'Eyal

Everything about ToME
It is currently Sun Sep 23, 2018 10:08 am

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Sat Jun 16, 2018 9:30 pm 
Offline
Cornac

Joined: Wed Jun 06, 2018 10:53 am
Posts: 31
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:
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group