Skip to content

Commit

Permalink
Fix build error (commit d9bbaab)
Browse files Browse the repository at this point in the history
  • Loading branch information
maron2000 committed Oct 10, 2023
1 parent d9bbaab commit 76aaccb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/dos/dos_programs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8214,9 +8214,11 @@ void SETCOLOR::Run()
altBGR0[i].red = rgbcolors[i].red;
altBGR0[i].green = rgbcolors[i].green;
altBGR0[i].blue = rgbcolors[i].blue;
#ifdef USE_TTF
altBGR1[i].red = rgbcolors[i].red;
altBGR1[i].green = rgbcolors[i].green;
altBGR1[i].blue = rgbcolors[i].blue;
#endif
get_pal = true;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/output/output_ttf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,8 @@ bool setColors(const char *colorArray, int n) {
if (rgbVal[3] < 0 || rgbVal[3] > 0xFFFFF)
return false;
for (int i = 2; i >= 0; i--) {
rgbVal[i] = nextRGB_val&255;
nextRGB_val >>= 8;
rgbVal[i] = rgbVal[3]&255;
rgbVal[3] >>= 8;
}
nextRGB = strchr(nextRGB, '#') + 7;
} else
Expand Down

0 comments on commit 76aaccb

Please sign in to comment.