From 9bc978ce16272e984b4090b4e0b6a3358e3779bf Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 30 Dec 2023 08:10:34 +0100 Subject: [PATCH] added some CAP_ guards so Android compiles --- dialogs.cpp | 2 ++ embeddings.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/dialogs.cpp b/dialogs.cpp index ba68b739..04e6e5dc 100644 --- a/dialogs.cpp +++ b/dialogs.cpp @@ -1201,6 +1201,7 @@ EX namespace dialog { rot_but(0, 1, "rotate in XY", 'z'); } +#if !ISMOBILE addBoolItem("mouse control", dialogflags & sm::MOUSEAIM, 'm'); dialog::add_action([this] { dialogflags ^= sm::MOUSEAIM; }); if(dialogflags & sm::MOUSEAIM) { @@ -1208,6 +1209,7 @@ EX namespace dialog { *edit_matrix = cspin(1, 2, mouseaim_y) * *edit_matrix; mouseaim_x = mouseaim_y = 0; } +#endif static string formula; formula = "?"; diff --git a/embeddings.cpp b/embeddings.cpp index c254f80c..e9c5365a 100644 --- a/embeddings.cpp +++ b/embeddings.cpp @@ -1389,7 +1389,9 @@ geom3::eSpatialEmbedding embed_by_name(string ss) { return seNone; } +#if CAP_COMMANDLINE auto ah_embed = arg::add2("-seo", [] { arg::shift(); invoke_embed(embed_by_name(arg::args())); }) + arg::add2("-never-invert", [] { never_invert = true; }); +#endif }