summaryrefslogtreecommitdiff
path: root/src/app.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.c')
-rw-r--r--src/app.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/app.c b/src/app.c
index 5eceebec..42244c80 100644
--- a/src/app.c
+++ b/src/app.c
@@ -98,6 +98,7 @@ struct Impl_App {
98 float uiScale; 98 float uiScale;
99 int zoomPercent; 99 int zoomPercent;
100 iBool forceWrap; 100 iBool forceWrap;
101 iBool forceSoftwareRender;
101 enum iColorTheme theme; 102 enum iColorTheme theme;
102 iBool useSystemTheme; 103 iBool useSystemTheme;
103 iString gopherProxy; 104 iString gopherProxy;
@@ -304,6 +305,7 @@ static void init_App_(iApp *d, int argc, char **argv) {
304 d->pendingRefresh = iFalse; 305 d->pendingRefresh = iFalse;
305 d->zoomPercent = 100; 306 d->zoomPercent = 100;
306 d->forceWrap = iFalse; 307 d->forceWrap = iFalse;
308 d->forceSoftwareRender = checkArgument_CommandLine(&d->args, "sw") != NULL;
307 d->certs = new_GmCerts(dataDir_App_); 309 d->certs = new_GmCerts(dataDir_App_);
308 d->visited = new_Visited(); 310 d->visited = new_Visited();
309 d->bookmarks = new_Bookmarks(); 311 d->bookmarks = new_Bookmarks();
@@ -531,10 +533,14 @@ int zoom_App(void) {
531 return app_.zoomPercent; 533 return app_.zoomPercent;
532} 534}
533 535
534iBool isLineWrapForced_App(void) { 536iBool forceLineWrap_App(void) {
535 return app_.forceWrap; 537 return app_.forceWrap;
536} 538}
537 539
540iBool forceSoftwareRender_App(void) {
541 return app_.forceSoftwareRender;
542}
543
538enum iColorTheme colorTheme_App(void) { 544enum iColorTheme colorTheme_App(void) {
539 return app_.theme; 545 return app_.theme;
540} 546}