1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +00:00

missing CAP_SVG guards

This commit is contained in:
? 2019-02-21 18:47:48 +01:00 committed by Zeno Rogue
parent 96e4ff6c9d
commit 1c5d79b4ba

View File

@ -301,8 +301,12 @@ void postprocess(string fname, SDL_Surface *sdark, SDL_Surface *sbright) {
void take(string fname, const function<void()>& what) { void take(string fname, const function<void()>& what) {
if(cheater) doOvergenerate(); if(cheater) doOvergenerate();
#if CAP_SVG
int multiplier = make_svg ? svg::divby : shot_aa; int multiplier = make_svg ? svg::divby : shot_aa;
#else
int multiplier = shot_aa;
#endif
dynamicval<videopar> v(vid, vid); dynamicval<videopar> v(vid, vid);
dynamicval<bool> v2(inHighQual, true); dynamicval<bool> v2(inHighQual, true);
@ -400,9 +404,11 @@ void menu() {
dialog::addSelItem(XLAT("pixels (Y)"), its(shoty), 'y'); dialog::addSelItem(XLAT("pixels (Y)"), its(shoty), 'y');
dialog::add_action([] { shotformat = -1; dialog::editNumber(shoty, 500, 8000, 100, 2000, XLAT("pixels (Y)"), ""); }); dialog::add_action([] { shotformat = -1; dialog::editNumber(shoty, 500, 8000, 100, 2000, XLAT("pixels (Y)"), ""); });
if(make_svg) { if(make_svg) {
#if CAP_SVG
using namespace svg; using namespace svg;
dialog::addSelItem(XLAT("precision"), "1/"+its(divby), 'p'); dialog::addSelItem(XLAT("precision"), "1/"+its(divby), 'p');
dialog::add_action([] { divby *= 10; if(divby > 1000000) divby = 1; }); dialog::add_action([] { divby *= 10; if(divby > 1000000) divby = 1; });
#endif
} }
else { else {
dialog::addSelItem(XLAT("supersampling"), its(shot_aa), 's'); dialog::addSelItem(XLAT("supersampling"), its(shot_aa), 's');