Make some Image methods static
This commit is contained in:
parent
39534a7aec
commit
072f6feaba
51 changed files with 168 additions and 292 deletions
|
|
@ -99,7 +99,7 @@ Error jpeg_load_image_from_buffer(Image *p_image, const uint8_t *p_buffer, int p
|
|||
fmt = Image::FORMAT_RGB8;
|
||||
}
|
||||
|
||||
p_image->create(image_width, image_height, false, fmt, data);
|
||||
p_image->set_data(image_width, image_height, false, fmt, data);
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue