diff options
Diffstat (limited to 'src/app.c')
-rw-r--r-- | src/app.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 | ||
534 | iBool isLineWrapForced_App(void) { | 536 | iBool forceLineWrap_App(void) { |
535 | return app_.forceWrap; | 537 | return app_.forceWrap; |
536 | } | 538 | } |
537 | 539 | ||
540 | iBool forceSoftwareRender_App(void) { | ||
541 | return app_.forceSoftwareRender; | ||
542 | } | ||
543 | |||
538 | enum iColorTheme colorTheme_App(void) { | 544 | enum iColorTheme colorTheme_App(void) { |
539 | return app_.theme; | 545 | return app_.theme; |
540 | } | 546 | } |