diff options
Diffstat (limited to 'src/prefs.h')
-rw-r--r-- | src/prefs.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/prefs.h b/src/prefs.h index 59c36a16..d988399e 100644 --- a/src/prefs.h +++ b/src/prefs.h | |||
@@ -193,3 +193,7 @@ iLocalDef float scrollSpeedFactor_Prefs(const iPrefs *d, enum iScrollType type) | |||
193 | iAssert(type >= 0 && type < max_ScrollType); | 193 | iAssert(type >= 0 && type < max_ScrollType); |
194 | return 10.0f / iMax(1, d->smoothScrollSpeed[type]) * (type == mouse_ScrollType ? 0.5f : 1.0f); | 194 | return 10.0f / iMax(1, d->smoothScrollSpeed[type]) * (type == mouse_ScrollType ? 0.5f : 1.0f); |
195 | } | 195 | } |
196 | |||
197 | iLocalDef enum iGmDocumentTheme docTheme_Prefs(const iPrefs *d) { | ||
198 | return isDark_ColorTheme(d->theme) ? d->docThemeDark : d->docThemeLight; | ||
199 | } | ||