summaryrefslogtreecommitdiff
path: root/textscreen/txt_sdl.c
diff options
context:
space:
mode:
authorSimon Howard2009-09-20 15:27:40 +0000
committerSimon Howard2009-09-20 15:27:40 +0000
commit42f7a9b8a27ae1192b49005f5be3eba32f740d05 (patch)
treec8e5898cefc9a4f8af061528ad0b755fbcdf4bb6 /textscreen/txt_sdl.c
parent10da45b90cba29506c142982e76abc35c39d5d26 (diff)
downloadchocolate-doom-42f7a9b8a27ae1192b49005f5be3eba32f740d05.tar.gz
chocolate-doom-42f7a9b8a27ae1192b49005f5be3eba32f740d05.tar.bz2
chocolate-doom-42f7a9b8a27ae1192b49005f5be3eba32f740d05.zip
Use "const char" in libtextscreen where appropriate (thanks entryway).
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1679
Diffstat (limited to 'textscreen/txt_sdl.c')
-rw-r--r--textscreen/txt_sdl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/textscreen/txt_sdl.c b/textscreen/txt_sdl.c
index 367ed095..bc98a51b 100644
--- a/textscreen/txt_sdl.c
+++ b/textscreen/txt_sdl.c
@@ -217,7 +217,7 @@ static inline void UpdateCharacter(int x, int y)
unsigned char *p;
unsigned char *s, *s1;
int bg, fg;
- int x1, y1;
+ unsigned int x1, y1;
p = &screendata[(y * TXT_SCREEN_W + x) * 2];
character = p[0];
@@ -458,7 +458,7 @@ signed int TXT_GetChar(void)
return -1;
}
-static char *SpecialKeyName(int key)
+static const char *SpecialKeyName(int key)
{
switch (key)
{
@@ -524,7 +524,7 @@ static char *SpecialKeyName(int key)
void TXT_GetKeyDescription(int key, char *buf)
{
- char *keyname;
+ const char *keyname;
keyname = SpecialKeyName(key);