Fixed issue with disabled images

This commit is contained in:
andreja6
2018-04-24 00:59:03 -07:00
parent 30aa99ff0b
commit 9ffe37c21a
3 changed files with 9 additions and 10 deletions

View File

@@ -54,8 +54,8 @@ void ImageButtonInstance::drawObj(RenderDevice* rd, Vector2 mousePos, bool mouse
int renderimage = openGLID;
if(disabled)
{
if(openGLID_ds != 0)
renderimage = openGLID;
if(!image_ds.isNull())
renderimage = openGLID_ds;
}
else if(mouseInArea(positionRelative.x, positionRelative.y, positionRelative.x + size.x, positionRelative.y + size.y, mousePos.x, mousePos.y))
{