Closed jmc-figueira closed 7 years ago
Thanks for the report!
You're correct that the title should be shown there but it's not. I've managed to reproduce it locally. I've no idea why that is (yet), but I've verified that the equivalent C code linked to the libtcod.so
we generate works:
#include "libtcod.h"
#include "console.h"
int main(int argc, char** argv) {
TCOD_console_init_root(80, 50, "My Title", false, TCOD_RENDERER_SDL);
while (!TCOD_console_is_window_closed()) {
TCOD_console_clear(0);
TCOD_console_print_frame(0, 15, 25, 35, 10, false, TCOD_BKGND_SET, "Hello World!");
TCOD_console_flush();
TCOD_console_check_for_keypress(TCOD_KEY_PRESSED);
}
return 0;
}
(compiled with cc -L ./target/debug/build/tcod-sys-4d14ca3eba1c71ca/out/ -I./tcod_sys/libtcod/include/ -ltcod frame.c -o frame
and ran with LD_LIBRARY_PATH=./target/debug/build/tcod-sys-4d14ca3eba1c71ca/out/ ./frame
)
So it's something to do with the bindings themselves. I'll take a look.
Consider the following code:
This code should print the contents of title in case it is
Some("string literal")
, right? However, it doesn't print the title, printing only a small box in its place, as shown here.I've been trying to figure out why this is the case, and have yet to find a solution. Any suggestions?