commit 9c3f49fd1276e382b512433ef50c92db2fec39d8
parent a4fc0017f5ba4c67cf067361a8bc26185d6f98da
Author: lumidify <nobody@lumidify.org>
Date: Sun, 7 Jun 2020 09:16:47 +0200
Misc. fixes
Diffstat:
6 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/button.c b/button.c
@@ -23,6 +23,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <stdint.h>
#include <string.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
diff --git a/draw.c b/draw.c
@@ -23,6 +23,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <stdint.h>
#include <string.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
diff --git a/grid.c b/grid.c
@@ -26,6 +26,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <stdint.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include "util.h"
diff --git a/ltk.c b/ltk.c
@@ -24,6 +24,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <stdint.h>
#include <fcntl.h>
#include <unistd.h>
#include <time.h>
diff --git a/test_anim.sh b/test_anim.sh
@@ -12,15 +12,15 @@ draw drw1 set-color #000
"
i=0
-while [[ $i -lt 400 ]]; do
+while [ $i -lt 400 ]; do
j=0
- while [[ $j -lt 20 ]]; do
+ while [ $j -lt 20 ]; do
echo "draw drw1 line $((i+j)) $j $((i+j+2)) $((j+2))";
sleep 0.05
j=$((j+2))
done
j=20
- while [[ $j -gt 0 ]]; do
+ while [ $j -gt 0 ]; do
echo "draw drw1 line $((i+40-j)) $j $((i+42-j)) $((j-2))";
sleep 0.05
j=$((j-2))
diff --git a/text_common.c b/text_common.c
@@ -240,7 +240,7 @@ ltk_load_default_font(ltk_text *tm, char *name)
}
ltk_font *
-ltk_create_font(char *path, uint16_t id, index)
+ltk_create_font(char *path, uint16_t id, int index)
{
long len;
ltk_font *font = malloc(sizeof(ltk_font));