Changeset View
Changeset View
Standalone View
Standalone View
options.cpp
Show First 20 Lines • Show All 912 Lines • ▼ Show 20 Line(s) | 904 | { | |||
---|---|---|---|---|---|
913 | 913 | | |||
914 | setGlSmoothScale(qBound(-1, config.readEntry("GLTextureFilter", Options::defaultGlSmoothScale()), 2)); | 914 | setGlSmoothScale(qBound(-1, config.readEntry("GLTextureFilter", Options::defaultGlSmoothScale()), 2)); | ||
915 | setGlStrictBindingFollowsDriver(!config.hasKey("GLStrictBinding")); | 915 | setGlStrictBindingFollowsDriver(!config.hasKey("GLStrictBinding")); | ||
916 | if (!isGlStrictBindingFollowsDriver()) { | 916 | if (!isGlStrictBindingFollowsDriver()) { | ||
917 | setGlStrictBinding(config.readEntry("GLStrictBinding", Options::defaultGlStrictBinding())); | 917 | setGlStrictBinding(config.readEntry("GLStrictBinding", Options::defaultGlStrictBinding())); | ||
918 | } | 918 | } | ||
919 | setGLCoreProfile(config.readEntry("GLCore", Options::defaultGLCoreProfile())); | 919 | setGLCoreProfile(config.readEntry("GLCore", Options::defaultGLCoreProfile())); | ||
920 | 920 | | |||
921 | char c = 0; | 921 | char c = 'a'; | ||
922 | const QString s = config.readEntry("GLPreferBufferSwap", QString(Options::defaultGlPreferBufferSwap())); | 922 | const QString s = config.readEntry("GLPreferBufferSwap", QString(Options::defaultGlPreferBufferSwap())); | ||
923 | if (!s.isEmpty()) | 923 | if (!s.isEmpty()) | ||
924 | c = s.at(0).toLatin1(); | 924 | c = s.at(0).toLatin1(); | ||
925 | if (c != 'a' && c != 'c' && c != 'p' && c != 'e') | 925 | if (c != 'a' && c != 'c' && c != 'p' && c != 'e') | ||
926 | c = 0; | 926 | c = 'a'; | ||
927 | setGlPreferBufferSwap(c); | 927 | setGlPreferBufferSwap(c); | ||
928 | 928 | | |||
929 | m_xrenderSmoothScale = config.readEntry("XRenderSmoothScale", false); | 929 | m_xrenderSmoothScale = config.readEntry("XRenderSmoothScale", false); | ||
930 | 930 | | |||
931 | HiddenPreviews previews = Options::defaultHiddenPreviews(); | 931 | HiddenPreviews previews = Options::defaultHiddenPreviews(); | ||
932 | // 4 - off, 5 - shown, 6 - always, other are old values | 932 | // 4 - off, 5 - shown, 6 - always, other are old values | ||
933 | int hps = config.readEntry("HiddenPreviews", 5); | 933 | int hps = config.readEntry("HiddenPreviews", 5); | ||
934 | if (hps == 4) | 934 | if (hps == 4) | ||
▲ Show 20 Lines • Show All 158 Lines • Show Last 20 Lines |