DXX-Rebirth Forum
duplicate automap screenshots - Printable Version

+- DXX-Rebirth Forum (https://forum.dxx-rebirth.com)
+-- Forum: SDLDevil (https://forum.dxx-rebirth.com/forumdisplay.php?fid=4)
+--- Forum: Bugs (https://forum.dxx-rebirth.com/forumdisplay.php?fid=14)
+--- Thread: duplicate automap screenshots (/showthread.php?tid=1111)

duplicate automap screenshots - gkizior - 04-02-2019

At ./d1x-rebirth_v0.58.1-src/main/automap.c, line 572, where PRINTSCREEN causes a screenshot, there needs to be a conditional to prevent duplicate screenshots.
  if (event->type == EVENT_KEY_COMMAND)

around the body of the code (before "return 1", that is).

RE: duplicate automap screenshots - Kp - 04-03-2019

Thank you for the report. However, you are a bit late. zico fixed this in December 2013 with commit Rearranged EVENT_KEY_RELEASE for automap_handler so it will not trigger automap_key_command and create a double input following EVEN_KEY_COMMAND. I suggest you use current code, available in the branch master.