diff options
Diffstat (limited to 'src/app.c')
-rw-r--r-- | src/app.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -547,7 +547,15 @@ iBool forceLineWrap_App(void) { | |||
547 | } | 547 | } |
548 | 548 | ||
549 | iBool forceSoftwareRender_App(void) { | 549 | iBool 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 | ||
553 | enum iColorTheme colorTheme_App(void) { | 561 | enum iColorTheme colorTheme_App(void) { |