🚚 Rename CelOutputBuf to Surface and extract
This commit is contained in:
parent
3faeb5628a
commit
cb0dae8590
60 changed files with 474 additions and 458 deletions
|
|
@ -137,7 +137,7 @@ uint8_t fontColorTableGold[256];
|
|||
uint8_t fontColorTableBlue[256];
|
||||
uint8_t fontColorTableRed[256];
|
||||
|
||||
void DrawChar(const CelOutputBuffer &out, Point position, GameFontTables size, int nCel, text_color color)
|
||||
void DrawChar(const Surface &out, Point position, GameFontTables size, int nCel, text_color color)
|
||||
{
|
||||
switch (color) {
|
||||
case ColorWhite:
|
||||
|
|
@ -269,9 +269,9 @@ void WordWrapGameString(char *text, size_t width, GameFontTables size, int spaci
|
|||
}
|
||||
|
||||
/**
|
||||
* @todo replace Rectangle with cropped CelOutputBuffer
|
||||
* @todo replace Rectangle with cropped Surface
|
||||
*/
|
||||
int DrawString(const CelOutputBuffer &out, const char *text, const Rectangle &rect, uint16_t flags, int spacing, int lineHeight, bool drawTextCursor)
|
||||
int DrawString(const Surface &out, const char *text, const Rectangle &rect, uint16_t flags, int spacing, int lineHeight, bool drawTextCursor)
|
||||
{
|
||||
GameFontTables size = GameFontSmall;
|
||||
if ((flags & UIS_MED) != 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue