mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-23 11:12:50 +00:00
fixed transparent screenshot background if no gamma and no supersampling
This commit is contained in:
parent
261f039ed6
commit
2a45e1340c
@ -266,7 +266,7 @@ void default_screenshot_content() {
|
|||||||
|
|
||||||
#if CAP_PNG
|
#if CAP_PNG
|
||||||
void postprocess(string fname, SDL_Surface *sdark, SDL_Surface *sbright) {
|
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());
|
IMAGESAVE(sdark, fname.c_str());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user