[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2-demos] master 3fe82bd: * graph/grevents.h (grKey): Recode fun
From: |
Alexei Podtelezhnikov |
Subject: |
[freetype2-demos] master 3fe82bd: * graph/grevents.h (grKey): Recode function keys as 0xF1, etc. |
Date: |
Fri, 21 Aug 2020 23:07:45 -0400 (EDT) |
branch: master
commit 3fe82bd4aab744dcc729a60b606532c454efb19e
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Commit: Alexei Podtelezhnikov <apodtele@gmail.com>
* graph/grevents.h (grKey): Recode function keys as 0xF1, etc.
Use bash ANSI-C quoting $'\xF1' to pass them from the command line.
---
ChangeLog | 6 ++++++
graph/grevents.h | 6 +++---
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 8cf3620..af16376 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2020-08-21 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * graph/grevents.h (grKey): Recode function keys as 0xF1, etc.
+
+ Use bash ANSI-C quoting $'\xF1' to pass them from the command line.
+
2020-08-21 Werner Lemberg <wl@gnu.org>
Improve help for command line option `-d'.
diff --git a/graph/grevents.h b/graph/grevents.h
index 79d644d..c0a9429 100644
--- a/graph/grevents.h
+++ b/graph/grevents.h
@@ -125,7 +125,7 @@
grKeyDel = 0x7F,
- grKeyF1 = 0x101,
+ grKeyF1 = 0xF1,
grKeyF2,
grKeyF3,
grKeyF4,
@@ -138,7 +138,7 @@
grKeyF11,
grKeyF12,
- grKeyIns,
+ grKeyIns = 0x100,
grKeyHome,
grKeyEnd,
grKeyPageUp,
@@ -155,7 +155,7 @@
} grKey;
-#define grKEY( c ) ( (grKey)( c ) )
+#define grKEY( c ) ( (grKey)(unsigned char)( c ) )
/* masks - to be used as enums they would have to be included */
/* in the grKey enum */
#define grKeyAlt ( (grKey)0x8000 )
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2-demos] master 3fe82bd: * graph/grevents.h (grKey): Recode function keys as 0xF1, etc.,
Alexei Podtelezhnikov <=