[0.16.1] take_screenshot ignores surface parameter

This subforum contains all the issues which we already resolved.
Post Reply
aaargha
Filter Inserter
Filter Inserter
Posts: 329
Joined: Wed Dec 07, 2016 8:35 am
Contact:

[0.16.1] take_screenshot ignores surface parameter

Post 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 1829 times
When used while on surface 2 (incorrect):
Screenshot from surface 2
Screenshot from surface 2
2.png (26.01 KiB) Viewed 1829 times
However, using a surface that does not exist still correctly gives an error.

Oxyd
Former Staff
Former Staff
Posts: 1428
Joined: Thu May 07, 2015 8:42 am
Contact:

Re: [0.16.1] take_screenshot ignores surface parameter

Post by Oxyd »

Thanks, it simply ignored the passed-in surface. Fixed in 0.16.3.

Post Reply

Return to “Resolved Problems and Bugs”