diff options
author | inmarket <andrewh@inmarket.com.au> | 2013-12-24 19:58:18 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2013-12-24 19:58:18 +1000 |
commit | 0345dadebf55980d765826e32854049e498d5759 (patch) | |
tree | aa500fb65cda08d165dc2a66062beedcbdcb30fc /demos/3rdparty/doom/hu_stuff.c | |
parent | c24512f6edaee109ac10c378e7e89218c48255b7 (diff) | |
download | uGFX-0345dadebf55980d765826e32854049e498d5759.tar.gz uGFX-0345dadebf55980d765826e32854049e498d5759.tar.bz2 uGFX-0345dadebf55980d765826e32854049e498d5759.zip |
Fixes to DOOM demo to remove some operating system dependancies.
Also now has working input (although not perfect) - Needs mouse or touch.
Also now supports screen size doubling when the screen is significantly larger than doom's screen.
Diffstat (limited to 'demos/3rdparty/doom/hu_stuff.c')
-rw-r--r-- | demos/3rdparty/doom/hu_stuff.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/demos/3rdparty/doom/hu_stuff.c b/demos/3rdparty/doom/hu_stuff.c index efb13967..eed227dc 100644 --- a/demos/3rdparty/doom/hu_stuff.c +++ b/demos/3rdparty/doom/hu_stuff.c @@ -405,7 +405,7 @@ void HU_Init(void) j = HU_FONTSTART; for (i=0;i<HU_FONTSIZE;i++) { - sprintf(buffer, "STCFN%.3d", j++); + I_sprintf(buffer, "STCFN%.3d", j++); hu_font[i] = (patch_t *) W_CacheLumpName(buffer, PU_STATIC); } @@ -708,7 +708,7 @@ boolean HU_Responder(event_t *ev) c = c - '0'; if (c > 9) return false; - // fprintf(stderr, "got here\n"); + // I_DBGprintf("got here\n"); macromessage = chat_macros[c]; // kill last message with a '\n' @@ -737,7 +737,7 @@ boolean HU_Responder(event_t *ev) // static unsigned char buf[20]; // DEBUG HU_queueChatChar(c); - // sprintf(buf, "KEY: %d => %d", ev->data1, c); + // I_sprintf(buf, "KEY: %d => %d", ev->data1, c); // plr->message = buf; } if (c == KEY_ENTER) |