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:
@@ -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--;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user