Point TCODConsole::init_root to the C++ API.
#include "libtcod_int.h"
#include "image.hpp"
+#include "engine/display.h"
#ifdef TCOD_CONSOLE_SUPPORT
@@ -146,7 +147,7 @@ void TCODConsole::setWindowTitle(const char *title) {
void TCODConsole::initRoot(int w, int h, const char *title, bool fullscreen,
TCOD_renderer_t renderer)
{
- TCOD_console_init_root(w, h, title, fullscreen, renderer);
+ tcod::console::init_root(w, h, title ? title : "", fullscreen, renderer);
}
void TCODConsole::setFullscreen(bool fullscreen) {
