1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 01:00:25 +00:00

fixed transparent screenshot background if no gamma and no supersampling

This commit is contained in:
Zeno Rogue 2018-12-21 14:44:43 +01:00
parent 261f039ed6
commit 2a45e1340c

View File

@ -266,7 +266,7 @@ void default_screenshot_content() {
#if CAP_PNG
void postprocess(string fname, SDL_Surface *sdark, SDL_Surface *sbright) {
if(gamma == 1 && shot_aa == 1) {
if(gamma == 1 && shot_aa == 1 && sdark == sbright) {
IMAGESAVE(sdark, fname.c_str());
return;
}