1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-01-12 18:30:34 +00:00

anims:: fixed some issues with exporting animations

This commit is contained in:
Zeno Rogue 2018-09-10 22:37:17 +02:00
parent 47fab92cf3
commit 3bf2ed1d2d

View File

@ -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;
} }