1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 05:53:02 +01:00

Pass DrawPixelInfo by reference (#21563)

This commit is contained in:
Harry Hopkinson
2024-03-10 15:00:08 +00:00
committed by GitHub
parent 9ebe65b55a
commit 78d95fc0bd
24 changed files with 194 additions and 194 deletions

View File

@@ -492,7 +492,7 @@ static void TTFDrawCharacterSprite(DrawPixelInfo& dpi, int32_t codepoint, TextDr
}
PaletteMap paletteMap(info->palette);
GfxDrawGlyph(&dpi, sprite, screenCoords, paletteMap);
GfxDrawGlyph(dpi, sprite, screenCoords, paletteMap);
}
info->x += characterWidth;
@@ -548,7 +548,7 @@ static void TTFDrawStringRawTTF(DrawPixelInfo& dpi, std::string_view text, TextD
uint8_t hint_thresh = use_hinting ? fontDesc->hinting_threshold : 0;
drawingEngine->InvalidateImage(imageId);
drawingContext->DrawTTFBitmap(
&dpi, info, imageId, surface->pixels, surface->pitch, surface->h, drawX, drawY, hint_thresh);
dpi, info, imageId, surface->pixels, surface->pitch, surface->h, drawX, drawY, hint_thresh);
_ttfGlId++;
if (_ttfGlId >= 1023)