aboutsummaryrefslogtreecommitdiff
path: root/engines/sword2/maketext.h
diff options
context:
space:
mode:
authorColin Snover2017-12-05 12:07:25 -0600
committerEugene Sandulenko2018-08-18 16:30:05 +0200
commit2f872168647e0dc4d87f449ed283b830716ad78e (patch)
tree03c52f38de39b9196f08905b2f196d197b8ce725 /engines/sword2/maketext.h
parent072a52a9d25dfcc59ba7d18049cc29cd17acaffa (diff)
downloadscummvm-rg350-2f872168647e0dc4d87f449ed283b830716ad78e.tar.gz
scummvm-rg350-2f872168647e0dc4d87f449ed283b830716ad78e.tar.bz2
scummvm-rg350-2f872168647e0dc4d87f449ed283b830716ad78e.zip
SWORD2: Replace use of strdup with Common::String
Diffstat (limited to 'engines/sword2/maketext.h')
-rw-r--r--engines/sword2/maketext.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sword2/maketext.h b/engines/sword2/maketext.h
index 726c23a5f9..64024f8db3 100644
--- a/engines/sword2/maketext.h
+++ b/engines/sword2/maketext.h
@@ -91,8 +91,8 @@ private:
// each line - negative for overlap
uint8 _borderPen; // output pen color of character borders
- uint16 analyzeSentence(byte *sentence, uint16 maxWidth, uint32 fontRes, LineInfo *line);
- byte *buildTextSprite(byte *sentence, uint32 fontRes, uint8 pen, LineInfo *line, uint16 noOfLines);
+ uint16 analyzeSentence(const byte *sentence, uint16 maxWidth, uint32 fontRes, LineInfo *line);
+ byte *buildTextSprite(const byte *sentence, uint32 fontRes, uint8 pen, LineInfo *line, uint16 noOfLines);
uint16 charWidth(byte ch, uint32 fontRes);
uint16 charHeight(uint32 fontRes);
byte *findChar(byte ch, byte *charSet);
@@ -109,7 +109,7 @@ public:
free(_blocList[i].text_mem);
}
- byte *makeTextSprite(byte *sentence, uint16 maxWidth, uint8 pen, uint32 fontRes, uint8 border = BORDER_PEN);
+ byte *makeTextSprite(const byte *sentence, uint16 maxWidth, uint8 pen, uint32 fontRes, uint8 border = BORDER_PEN);
void killTextBloc(uint32 bloc_number);
void printTextBlocs();