diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2019-09-24 12:28:31 +0000 |
|---|---|---|
| committer | Tavmjong Bah <tavmjong@free.fr> | 2019-09-24 12:28:31 +0000 |
| commit | d6b062f355dd643012f4870727813965cd142978 (patch) | |
| tree | a8dfcba976d53d19eef62d75d659eec2f93ba9d2 /src/include/macros.h | |
| parent | Remove use of sp_round. (diff) | |
| download | inkscape-d6b062f355dd643012f4870727813965cd142978.tar.gz inkscape-d6b062f355dd643012f4870727813965cd142978.zip | |
Remove remaining uses of sp_round.
Diffstat (limited to 'src/include/macros.h')
| -rw-r--r-- | src/include/macros.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/include/macros.h b/src/include/macros.h index ff049ddf1..aa1719d2f 100644 --- a/src/include/macros.h +++ b/src/include/macros.h @@ -14,12 +14,10 @@ */ // I'm of the opinion that this file should be removed, so I will in the future take the necessary steps to wipe it out. -// Macros are not in general bad, but these particular ones are rather ugly. Especially that sp_round one. --Liam +// Macros are not in general bad, but these particular ones are rather ugly. --Liam #define sp_signal_disconnect_by_data(o,d) g_signal_handlers_disconnect_matched(o, G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, d) -#define sp_round(v,m) (((v) < 0.0) ? ((ceil((v) / (m) - 0.5)) * (m)) : ((floor((v) / (m) + 0.5)) * (m))) - // "primary" modifier: Ctrl on Linux/Windows and Cmd on macOS. // note: Could query this at runtime with // `gdk_keymap_get_modifier_mask(..., GDK_MODIFIER_INTENT_PRIMARY_ACCELERATOR)` |
