1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-15 22:27:38 +00:00

with CAP_FONT text works better on white background

This commit is contained in:
Zeno Rogue
2018-09-05 15:41:40 +02:00
parent ec84643070
commit 099349cafd
2 changed files with 6 additions and 13 deletions

View File

@@ -122,7 +122,7 @@ void resetTabFont() {
ftv = fonttable;
}
void loadCompressedChar(int &otwidth, int &otheight, int *tpix) {
void loadCompressedChar(int &otwidth, int &otheight, unsigned char *tpix) {
if(*ftv == 255) {
fprintf(stderr, "There is something wrong with the font table\n");
exit(1);
@@ -139,7 +139,7 @@ void loadCompressedChar(int &otwidth, int &otheight, int *tpix) {
while(q--) *(tpix++) = x;
}
else {
*(tpix++) = (x << 24) | 0xFFFFFF;
*(tpix++) = x;
left--;
}
}