mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-01-22 11:28:56 +00:00
2dlib: Fix set but not used compiler warning in font.cpp
This fixes a set but not used compiler warning in Release builds in 2dlib/font.cpp.
This commit is contained in:
parent
b43a5bb039
commit
0e8980ea13
@ -631,7 +631,7 @@ int grFont::draw_char(grSurface *sf, int x, int y, int ch, tCharProperties *chpr
|
||||
|
||||
int grFont::draw_char(grSurface *sf, int x, int y, int ch, int sx, int sy, int sw, int sh, tCharProperties *chprop) {
|
||||
gr_font_record *ft;
|
||||
int next_x = 0, width, index;
|
||||
int next_x = 0, index;
|
||||
|
||||
ASSERT(m_FontHandle > -1);
|
||||
if ((ch < min_ascii()) || (ch > max_ascii()))
|
||||
@ -643,6 +643,7 @@ int grFont::draw_char(grSurface *sf, int x, int y, int ch, int sx, int sy, int s
|
||||
index = ch - ft->font.min_ascii;
|
||||
|
||||
// draw either a color bitmap or mono font.
|
||||
[[maybe_unused]] int width;
|
||||
if (ft->font.flags & FT_PROPORTIONAL) {
|
||||
width = (int)ft->font.char_widths[index];
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user