-
-
Notifications
You must be signed in to change notification settings - Fork 73
Description
I still cannot compile libtcod, as I wrote in the recent issue.
But back in May I downloaded a precompiled version, and now trying that one.
Everything seems to be working, but I have a couple of problems.
One was that "TCOD_FONT_LAYOUT_ASCII_INCOL" doesn't seem to work by default. I use:
TCODConsole::setCustomFont("terminal.png", TCOD_FONT_LAYOUT_ASCII_INCOL | TCOD_FONT_TYPE_GREYSCALE, 16, 256);
So it's 16x 256y, it's supposed to map the standard font by going down the first column. Instead it simply maps the 16x16 area.
I was able to fix this by remapping manually, but it's not supposed to behave like this:
for (int n = 0; n <= 256; n++){
TCODConsole::mapAsciiCodeToFont(0+n,0,0+n);
}
The other problem is about alignment, and it fails:
local->setAlignment(TCOD_RIGHT);
local->print(setx+41, sety+10, "%cTOTALS%c", TCOD_COLCTRL_1, TCOD_COLCTRL_STOP);
This actually works. The problem is that alignment fails if I use the new printf. I did a "find & replace" across the code to swap print for printf, but whenever there's alignment it completely fails to properly align.
Another change is that the window can now be resized, but it doesn't work properly since instead of scaling well it creates all sort of graphical artifacts. Is there a way to disable the window scaling and make it fixed as it was before?