mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-12 10:20:32 +00:00
anims:: fixed some issues with exporting animations
This commit is contained in:
parent
47fab92cf3
commit
3bf2ed1d2d
@ -284,8 +284,11 @@ void saveHighQualityShot(const char *fname, const char *caption, int fade) {
|
|||||||
glbuf.clear(numi==1 ? backcolor : i ? 0xFFFFFF : 0);
|
glbuf.clear(numi==1 ? backcolor : i ? 0xFFFFFF : 0);
|
||||||
|
|
||||||
#if CAP_RUG
|
#if CAP_RUG
|
||||||
if(rug::rugged)
|
if(rug::rugged) {
|
||||||
|
if(!rug::renderonce) rug::prepareTexture();
|
||||||
|
glbuf.enable();
|
||||||
rug::drawRugScene();
|
rug::drawRugScene();
|
||||||
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
drawfullmap();
|
drawfullmap();
|
||||||
@ -510,7 +513,9 @@ bool record_animation() {
|
|||||||
|
|
||||||
char buf[1000];
|
char buf[1000];
|
||||||
snprintf(buf, 1000, animfile.c_str(), i);
|
snprintf(buf, 1000, animfile.c_str(), i);
|
||||||
|
apply();
|
||||||
saveHighQualityShot(buf);
|
saveHighQualityShot(buf);
|
||||||
|
rollback();
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user