Fix android build

Fixes #4493.
This commit is contained in:
est31 2016-09-30 14:30:37 +02:00
parent 45a9145a4b
commit 33a606c034
1 changed files with 5 additions and 2 deletions

View File

@ -613,6 +613,7 @@ void setXorgClassHint(const video::SExposedVideoData &video_data,
bool setXorgWindowIcon(IrrlichtDevice *device) bool setXorgWindowIcon(IrrlichtDevice *device)
{ {
#ifdef XORG_USED
# if RUN_IN_PLACE # if RUN_IN_PLACE
return setXorgWindowIconFromPath(device, return setXorgWindowIconFromPath(device,
path_share + "/misc/" PROJECT_NAME "-xorg-icon-128.png"); path_share + "/misc/" PROJECT_NAME "-xorg-icon-128.png");
@ -625,6 +626,8 @@ bool setXorgWindowIcon(IrrlichtDevice *device)
ICON_DIR "/hicolor/128x128/apps/" PROJECT_NAME ".png") || ICON_DIR "/hicolor/128x128/apps/" PROJECT_NAME ".png") ||
setXorgWindowIconFromPath(device, setXorgWindowIconFromPath(device,
path_share + "/misc/" PROJECT_NAME "-xorg-icon-128.png"); path_share + "/misc/" PROJECT_NAME "-xorg-icon-128.png");
# endif
return false;
#endif #endif
} }