fixes for RW compatibility

This commit is contained in:
aap
2020-04-23 22:18:53 +02:00
parent 752fceb1e3
commit 374f951d7c
7 changed files with 50 additions and 23 deletions

View File

@@ -60,7 +60,7 @@ Charset::close(void)
}
Charset*
Charset::create(RGBA *foreground, RGBA *background)
Charset::create(const RGBA *foreground, const RGBA *background)
{
Charset *charset = (Charset*)rwMalloc(sizeof(Charset), MEMDUR_EVENT);
if(charset == nil){
@@ -91,7 +91,7 @@ Charset::destroy(void)
}
Charset*
Charset::setColors(RGBA *foreground, RGBA *background)
Charset::setColors(const RGBA *foreground, const RGBA *background)
{
Image *img = Image::create(256, 256, 8);
if(img == nil)