Qt paper doll fix for two-handed weapons

Allowing optional arguments can be risky.  The recent glyph changes
added a new argument to the routine that constructs a mirror image
of a tile but not to the call to that routine.  Because an existing
argument was optional, the compiler didn't complain about the new
one being missing.

Obsolete optional 'fem' argument ought to removed but this doesn't
tackle that.
This commit is contained in:
PatR
2021-12-29 02:13:34 -08:00
parent ea0c488178
commit fdc6914926

View File

@@ -98,7 +98,7 @@ void NetHackQtGlyphs::drawGlyph(QPainter& painter, int glyph, int tileidx,
painter.drawPixmap(x, y, pm, px, py, width(), height());
} else {
// for paper doll; mirrored image for left side of two-handed weapon
painter.drawPixmap(x, y, reversed_pixmap(glyph, fem),
painter.drawPixmap(x, y, reversed_pixmap(glyph, tileidx, fem),
0, 0, width(), height());
}
}