Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Save Screenshot #2040

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

Commits on Jan 16, 2021

  1. Added Save Screenshot

    Pressing the MOD + Q key will save a screenshot the next time the screen is rendered.
    
    It saves a PNG file with a date time stamp filename.
    
    It uses lodepng to encode the file.  Thanks Lode Vandevenne (https://github.com/lvandeve/lodepng)
    
    The save_screenshot function has been modified from user1902824 (https://stackoverflow.com/questions/34255820/save-sdl-texture-to-file)
    
    Limitations.
    
    If 2 screenshots are taken within the same second, the file name will be the same and the first file will be overwritten
    
    Does not handle client side screen rotation.
    Aaron Keith committed Jan 16, 2021
    Configuration menu
    Copy the full SHA
    75ebbc5 View commit details
    Browse the repository at this point in the history