From 23c9b510fd82a07af3dbcebe43273e3449f26b3a Mon Sep 17 00:00:00 2001 From: m3rein Date: Mon, 7 Sep 2020 16:38:19 +0200 Subject: [PATCH] Updated pbCaptureScreen --- Data/Scripts/020_System and utilities/002_PSystem_System.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Data/Scripts/020_System and utilities/002_PSystem_System.rb b/Data/Scripts/020_System and utilities/002_PSystem_System.rb index b24d36972..c6e07ebd6 100644 --- a/Data/Scripts/020_System and utilities/002_PSystem_System.rb +++ b/Data/Scripts/020_System and utilities/002_PSystem_System.rb @@ -96,7 +96,11 @@ def pbScreenCapture filestart = sprintf("%s.%03d",filestart,(t.to_f-t.to_i)*1000) # milliseconds capturefile = RTP.getSaveFileName(sprintf("%s.png",filestart)) if capturefile && safeExists?("rubyscreen.dll") - Graphics.snap_to_bitmap(false).saveToPng(capturefile) + if mkxp? + Graphics.screenshot(capturefile) + else + Graphics.snap_to_bitmap(false).saveToPng(capturefile) + end pbSEPlay("Pkmn exp full") if FileTest.audio_exist?("Audio/SE/Pkmn exp full") end end