GRAPHICS: Fix GCC Compiler Warnings

This commit is contained in:
D G Turner 2021-05-05 11:36:04 +01:00
parent 02a5a1e2c6
commit a51f5e9c1a
2 changed files with 2 additions and 2 deletions

View file

@ -676,7 +676,7 @@ void MacText::render(int from, int to) {
debug(9, "MacText::render: line %d[%d] h:%d at %d,%d (%s) fontid: %d on %dx%d, fgcolor: %d bgcolor: %d, font: %p",
i, j, _textLines[i].height, xOffset, _textLines[i].y, _textLines[i].chunks[j].text.encode().c_str(),
_textLines[i].chunks[j].fontId, _surface->w, _surface->h, _textLines[i].chunks[j].fgcolor, _bgcolor,
(void *)_textLines[i].chunks[j].getFont());
(const void *)_textLines[i].chunks[j].getFont());
if (_textLines[i].chunks[j].text.empty())
continue;

View file

@ -572,7 +572,7 @@ void Surface::debugPrint(int debuglevel, int width, int height, int x, int y, in
int tox = MIN<int>(x + width, w);
int toy = MIN<int>(y + height, h);
debug(debuglevel, "Surface: %d x %d, bpp: %d, format: %s, address: %p", w, h, format.bytesPerPixel, format.toString().c_str(), (void *)this);
debug(debuglevel, "Surface: %d x %d, bpp: %d, format: %s, address: %p", w, h, format.bytesPerPixel, format.toString().c_str(), (const void *)this);
debug(debuglevel, "displaying: %d x %d @ %d,%d, scale: %d", width, height, x, y, scale);
debugN(debuglevel, "+");
for (int xx = x; xx < tox; xx += scale)