🚚 Rename CelOutputBuf to Surface and extract

This commit is contained in:
Gleb Mazovetskiy 2021-07-03 07:42:35 +01:00 committed by Anders Jenbo
commit cb0dae8590
60 changed files with 474 additions and 458 deletions

View file

@ -96,7 +96,7 @@ int CalculateTextPosition()
/**
* @brief Draw the current text in the quest dialog window
*/
void DrawQTextContent(const CelOutputBuffer &out)
void DrawQTextContent(const Surface &out)
{
int y = CalculateTextPosition();
@ -155,13 +155,13 @@ void InitQTextMsg(_speech_id m)
PlaySFX(alltext[m].sfxnr);
}
void DrawQTextBack(const CelOutputBuffer &out)
void DrawQTextBack(const Surface &out)
{
CelDrawTo(out, { PANEL_X + 24, 327 + UI_OFFSET_Y }, *pTextBoxCels, 1);
DrawHalfTransparentRectTo(out, PANEL_X + 27, UI_OFFSET_Y + 28, 585, 297);
}
void DrawQText(const CelOutputBuffer &out)
void DrawQText(const Surface &out)
{
DrawQTextBack(out);
DrawQTextContent(out.subregionY(UI_OFFSET_Y + 49, 260));