Ignore Qt specific config options silently
If the binary wasn't compiled with Qt, don't complain about Qt specific config options.
This commit is contained in:
+7
-2
@@ -2674,24 +2674,29 @@ char *origbuf;
|
|||||||
} else if (match_varname(buf, "SOUND", 5)) {
|
} else if (match_varname(buf, "SOUND", 5)) {
|
||||||
add_sound_mapping(bufp);
|
add_sound_mapping(bufp);
|
||||||
#endif
|
#endif
|
||||||
#ifdef QT_GRAPHICS
|
|
||||||
/* These should move to wc_ options */
|
|
||||||
} else if (match_varname(buf, "QT_TILEWIDTH", 12)) {
|
} else if (match_varname(buf, "QT_TILEWIDTH", 12)) {
|
||||||
|
#ifdef QT_GRAPHICS
|
||||||
extern char *qt_tilewidth;
|
extern char *qt_tilewidth;
|
||||||
|
|
||||||
if (qt_tilewidth == NULL)
|
if (qt_tilewidth == NULL)
|
||||||
qt_tilewidth = dupstr(bufp);
|
qt_tilewidth = dupstr(bufp);
|
||||||
|
#endif
|
||||||
} else if (match_varname(buf, "QT_TILEHEIGHT", 13)) {
|
} else if (match_varname(buf, "QT_TILEHEIGHT", 13)) {
|
||||||
|
#ifdef QT_GRAPHICS
|
||||||
extern char *qt_tileheight;
|
extern char *qt_tileheight;
|
||||||
|
|
||||||
if (qt_tileheight == NULL)
|
if (qt_tileheight == NULL)
|
||||||
qt_tileheight = dupstr(bufp);
|
qt_tileheight = dupstr(bufp);
|
||||||
|
#endif
|
||||||
} else if (match_varname(buf, "QT_FONTSIZE", 11)) {
|
} else if (match_varname(buf, "QT_FONTSIZE", 11)) {
|
||||||
|
#ifdef QT_GRAPHICS
|
||||||
extern char *qt_fontsize;
|
extern char *qt_fontsize;
|
||||||
|
|
||||||
if (qt_fontsize == NULL)
|
if (qt_fontsize == NULL)
|
||||||
qt_fontsize = dupstr(bufp);
|
qt_fontsize = dupstr(bufp);
|
||||||
|
#endif
|
||||||
} else if (match_varname(buf, "QT_COMPACT", 10)) {
|
} else if (match_varname(buf, "QT_COMPACT", 10)) {
|
||||||
|
#ifdef QT_GRAPHICS
|
||||||
extern int qt_compact_mode;
|
extern int qt_compact_mode;
|
||||||
|
|
||||||
qt_compact_mode = atoi(bufp);
|
qt_compact_mode = atoi(bufp);
|
||||||
|
|||||||
Reference in New Issue
Block a user