| 1 |
#include "dinkc_console_renderer.h" |
| 2 |
#include "dinkc_console.h" |
| 3 |
#include "gfx_fonts.h" |
| 4 |
|
| 5 |
#ifdef HAVE_CONFIG_H |
| 6 |
#include <config.h> |
| 7 |
#endif |
| 8 |
|
| 9 |
void dinkc_console_renderer_render() { |
| 10 |
if (console_active == 1) { |
| 11 |
char* line = dinkc_console_get_cur_line(); |
| 12 |
FONTS_SetTextColor(0, 0, 0); |
| 13 |
print_text_wrap_debug(line, 20, 380); |
| 14 |
|
| 15 |
char retval[20+1]; |
| 16 |
sprintf(retval, "%d", dinkc_console_get_last_retval()); |
| 17 |
FONTS_SetTextColor(255, 0, 0); |
| 18 |
print_text_wrap_debug(retval, 20, 360); |
| 19 |
} |
| 20 |
} |