shithub: microui

Download patch

ref: 5f253eb525bc296585b9e7879a40ce43f0db034f
parent: c8aacac864e10c3979d290655648b6c980c52e60
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Tue Jan 7 18:08:37 EST 2020

move fmts to .c file

--- a/microui.c
+++ b/microui.c
@@ -3,6 +3,9 @@
 #include <draw.h>
 #include <microui.h>
 
+#define MU_REAL_FMT "%.3g"
+#define MU_SLIDER_FMT "%.2f"
+
 #define MIN(a, b) ((a) < (b) ? (a) : (b))
 #define MAX(a, b) ((a) > (b) ? (a) : (b))
 #define CLAMP(x, a, b) MIN(b, MAX(a, x))
--- a/microui.h
+++ b/microui.h
@@ -15,9 +15,6 @@
 	MU_MAX_FMT		= 127,
 };
 
-#define MU_REAL_FMT   "%.3g"
-#define MU_SLIDER_FMT "%.2f"
-
 enum
 {
 	MU_CLIP_NONE,