diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-09-15 22:12:49 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-09-15 22:12:49 +0300 |
commit | 5293de3a437b10656e4e678cffecdc1cf416b9d9 (patch) | |
tree | c8b0a6aa95ef4b66709bcc13895faad25275fe78 /src/ui/documentwidget.c | |
parent | a69ee841cd3d8ce3bf8341fbe6e590614a6a0609 (diff) |
Added software rendering fallback and --sw option
Diffstat (limited to 'src/ui/documentwidget.c')
-rw-r--r-- | src/ui/documentwidget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index fce548b4..ab8af9b8 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c | |||
@@ -269,7 +269,7 @@ static iRect documentBounds_DocumentWidget_(const iDocumentWidget *d) { | |||
269 | } | 269 | } |
270 | 270 | ||
271 | static int forceBreakWidth_DocumentWidget_(const iDocumentWidget *d) { | 271 | static int forceBreakWidth_DocumentWidget_(const iDocumentWidget *d) { |
272 | if (isLineWrapForced_App()) { | 272 | if (forceLineWrap_App()) { |
273 | const iRect bounds = bounds_Widget(constAs_Widget(d)); | 273 | const iRect bounds = bounds_Widget(constAs_Widget(d)); |
274 | const iRect docBounds = documentBounds_DocumentWidget_(d); | 274 | const iRect docBounds = documentBounds_DocumentWidget_(d); |
275 | return right_Rect(bounds) - left_Rect(docBounds) - gap_UI * d->pageMargin; | 275 | return right_Rect(bounds) - left_Rect(docBounds) - gap_UI * d->pageMargin; |