summaryrefslogtreecommitdiff
path: root/textscreen
diff options
context:
space:
mode:
Diffstat (limited to 'textscreen')
-rw-r--r--textscreen/txt_sdl.c1
-rw-r--r--textscreen/txt_spinctrl.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/textscreen/txt_sdl.c b/textscreen/txt_sdl.c
index aeb8cd63..823685a1 100644
--- a/textscreen/txt_sdl.c
+++ b/textscreen/txt_sdl.c
@@ -27,6 +27,7 @@
#include "SDL.h"
#include <ctype.h>
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/textscreen/txt_spinctrl.c b/textscreen/txt_spinctrl.c
index be9da823..2b99f535 100644
--- a/textscreen/txt_spinctrl.c
+++ b/textscreen/txt_spinctrl.c
@@ -403,7 +403,7 @@ txt_spincontrol_t *TXT_NewFloatSpinControl(float *value, float min, float max)
spincontrol->value = (void *) value;
spincontrol->min.f = min;
spincontrol->max.f = max;
- spincontrol->step.f = 0.1;
+ spincontrol->step.f = 0.1f;
return spincontrol;
}