tMisc. fixes - ltk - Socket-based GUI for X11 (WIP)
HTML git clone git://lumidify.org/ltk.git (fast, but not encrypted)
HTML git clone https://lumidify.org/git/ltk.git (encrypted, but very slow)
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 9c3f49fd1276e382b512433ef50c92db2fec39d8
DIR parent a4fc0017f5ba4c67cf067361a8bc26185d6f98da
HTML Author: lumidify <nobody@lumidify.org>
Date: Sun, 7 Jun 2020 09:16:47 +0200
Misc. fixes
Diffstat:
M button.c | 1 +
M draw.c | 1 +
M grid.c | 1 +
M ltk.c | 1 +
M test_anim.sh | 6 +++---
M text_common.c | 2 +-
6 files changed, 8 insertions(+), 4 deletions(-)
---
DIR diff --git a/button.c b/button.c
t@@ -23,6 +23,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <stdint.h>
#include <string.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
DIR diff --git a/draw.c b/draw.c
t@@ -23,6 +23,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <stdint.h>
#include <string.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
DIR diff --git a/grid.c b/grid.c
t@@ -26,6 +26,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <stdint.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include "util.h"
DIR diff --git a/ltk.c b/ltk.c
t@@ -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>
DIR diff --git a/test_anim.sh b/test_anim.sh
t@@ -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))
DIR diff --git a/text_common.c b/text_common.c
t@@ -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));