Page 1 of 1

[0.16.1] take_screenshot ignores surface parameter

Posted: Thu Dec 14, 2017 8:11 am
by aaargha
Unlesss I'm really misunderstanding how the new surface parameter to take_screenshot is supposed to work, it seems like it does nothing?
API wrote:surface :: SurfaceSpecification (optional): IF defined, the screenshot will be take on this surface unless player is also given.
If I'm reading that correctly the following command should always yield the same result no matter the surface the player is on.

Code: Select all

/c game.take_screenshot{surface=1, position={10,10}, resolution={100,100}}
It does not.
When used while on surface 1 (correct):
Screenshot from surface 1
Screenshot from surface 1
1.png (27.88 KiB) Viewed 2237 times
When used while on surface 2 (incorrect):
Screenshot from surface 2
Screenshot from surface 2
2.png (26.01 KiB) Viewed 2237 times
However, using a surface that does not exist still correctly gives an error.

Re: [0.16.1] take_screenshot ignores surface parameter

Posted: Thu Dec 14, 2017 5:25 pm
by Oxyd
Thanks, it simply ignored the passed-in surface. Fixed in 0.16.3.