summaryrefslogtreecommitdiff
path: root/src/app.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.c')
-rw-r--r--src/app.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/app.c b/src/app.c
index 285036cb..84e57ce2 100644
--- a/src/app.c
+++ b/src/app.c
@@ -547,7 +547,15 @@ iBool forceLineWrap_App(void) {
547} 547}
548 548
549iBool forceSoftwareRender_App(void) { 549iBool forceSoftwareRender_App(void) {
550 return app_.forceSoftwareRender; 550 if (app_.forceSoftwareRender) {
551 return iTrue;
552 }
553#if defined (LAGRANGE_ENABLE_X11_SWRENDER)
554 if (getenv("DISPLAY")) {
555 return iTrue;
556 }
557#endif
558 return iFalse;
551} 559}
552 560
553enum iColorTheme colorTheme_App(void) { 561enum iColorTheme colorTheme_App(void) {