mirror of
https://github.com/dborth/fceugx.git
synced 2025-01-07 14:28:18 +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)
|
void GuiImage::SetImage(GuiImageData * img)
|
||||||
{
|
{
|
||||||
image = img->GetImage();
|
image = NULL;
|
||||||
width = img->GetWidth();
|
width = 0;
|
||||||
height = img->GetHeight();
|
height = 0;
|
||||||
|
if(img)
|
||||||
|
{
|
||||||
|
image = img->GetImage();
|
||||||
|
width = img->GetWidth();
|
||||||
|
height = img->GetHeight();
|
||||||
|
}
|
||||||
imgType = IMAGE_DATA;
|
imgType = IMAGE_DATA;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user