Closed GoogleCodeExporter closed 9 years ago
Aion had similar problem on the Caanoo:
http://lh6.ggpht.com/_7ELzlmTib4Y/TMGcusgmLEI/AAAAAAAAAW4/Iv697ByOK2s/IMAG0001.j
pg
His later comment was: "Problem was in engine.c->Draw_menu_button()->char icon;
Default setting for char type in compiler was unsigned. So, if (icon==-1)
condition did not work correctly. I'm changed type for int8_t."
The source code requires that the type "char" is signed, and apparently it's
not the case by default on your environment. For the moment, add the compiler
option -fsigned-char and it should solve everything. I'm checking if I can
easily make the source code work ok in the 2 cases (signed and unsigned)
Original comment by yrizoud
on 26 Feb 2011 at 3:42
r1734 solves this. I tested by re-compiling all with "-funsigned-char", no
other compiler warning appears. I'm rather confident that the rest of the
program is ok, because the original DOS code (which is the biggest part) was
using the custom type name "byte" for an explicit unsigned char (0-255), char
is used almost only for elements of strings.
Original comment by yrizoud
on 26 Feb 2011 at 4:05
Sweet, looks to work perfectly. Thanks heaps.
Original comment by carl.ols...@gmail.com
on 26 Feb 2011 at 4:32
Original comment by yrizoud
on 26 Feb 2011 at 5:52
Original issue reported on code.google.com by
carl.ols...@gmail.com
on 26 Feb 2011 at 6:10Attachments: