]> git.webhop.me Git - input.git/commitdiff
fix umlaute
authormax_10 <max_10@gmx.de>
Sat, 28 Jan 2017 07:29:06 +0000 (08:29 +0100)
committersvenhoefer <svenhoefer@svenhoefer.com>
Sat, 28 Jan 2017 07:29:06 +0000 (08:29 +0100)
inputd.c
text.c

index b6d17c81e6a793509bf18b44d0eb993bfc05585c..3abf2d8061c2944a0141b16cb8a87f73db36b4d3 100644 (file)
--- a/inputd.c
+++ b/inputd.c
@@ -282,8 +282,7 @@ int act_key=-1, last_key=-1, run=1, ipos=0, count=0;
 time_t t1, t2, tm1;
  // only for num block
 const char knum[12][2]={"1","2","3","4","5","6","7","8","9"," ","0"};
-const char kalp[12][5]={"+-*/","abcä","def","ghi","jkl","mnoö","pqrs","tuvü","wxyz","","_,.;"};
-
+const char kalp[12][6]={"+-*/","abcä","def","ghi","jkl","mnoö","pqrsß","tuvü","wxyz","","_,.;"};
 
        epos=-1;
        cpos=0;
diff --git a/text.c b/text.c
index 1919952a92136c0a0bb5e1a78797eb4bcba6e632..83dd3bd748b872be9e7c2293cb4bd8c41517da63 100644 (file)
--- a/text.c
+++ b/text.c
@@ -90,6 +90,8 @@ int RenderChar(FT_ULong currentchar, int _sx, int _sy, int _ex, int color)
        FT_Vector kerning;
        FT_Error err;
 
+       currentchar &= 0xFF;
+
        if (currentchar == '\r') // display \r in windows edited files
        {
                if(color != -1)