mirror of
https://github.com/dborth/fceugx.git
synced 2025-01-05 21:38:17 +01:00
allow NULL on SetImage
This commit is contained in:
parent
4546f65b21
commit
3de479a102
@ -94,9 +94,15 @@ u8 * GuiImage::GetImage()
|
||||
|
||||
void GuiImage::SetImage(GuiImageData * img)
|
||||
{
|
||||
image = img->GetImage();
|
||||
width = img->GetWidth();
|
||||
height = img->GetHeight();
|
||||
image = NULL;
|
||||
width = 0;
|
||||
height = 0;
|
||||
if(img)
|
||||
{
|
||||
image = img->GetImage();
|
||||
width = img->GetWidth();
|
||||
height = img->GetHeight();
|
||||
}
|
||||
imgType = IMAGE_DATA;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user