From d6b062f355dd643012f4870727813965cd142978 Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Tue, 24 Sep 2019 14:28:31 +0200 Subject: Remove remaining uses of sp_round. --- src/include/macros.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/include') 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)` -- cgit v1.2.3