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:
parent
96e4ff6c9d
commit
1c5d79b4ba
@ -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');
|
||||||
|
Loading…
Reference in New Issue
Block a user