Changeset View
Changeset View
Standalone View
Standalone View
options.cpp
Show First 20 Lines • Show All 942 Lines • ▼ Show 20 Line(s) | 931 | { | |||
---|---|---|---|---|---|
943 | if (!isGlStrictBindingFollowsDriver()) { | 943 | if (!isGlStrictBindingFollowsDriver()) { | ||
944 | setGlStrictBinding(config.readEntry("GLStrictBinding", Options::defaultGlStrictBinding())); | 944 | setGlStrictBinding(config.readEntry("GLStrictBinding", Options::defaultGlStrictBinding())); | ||
945 | } | 945 | } | ||
946 | setGLCoreProfile(config.readEntry("GLCore", Options::defaultGLCoreProfile())); | 946 | setGLCoreProfile(config.readEntry("GLCore", Options::defaultGLCoreProfile())); | ||
947 | 947 | | |||
948 | char c = 0; | 948 | char c = 0; | ||
949 | const QString s = config.readEntry("GLPreferBufferSwap", QString(Options::defaultGlPreferBufferSwap())); | 949 | const QString s = config.readEntry("GLPreferBufferSwap", QString(Options::defaultGlPreferBufferSwap())); | ||
950 | if (!s.isEmpty()) | 950 | if (!s.isEmpty()) | ||
951 | c = s.at(0).toAscii(); | 951 | c = s.at(0).toLatin1(); | ||
952 | if (c != 'a' && c != 'c' && c != 'p' && c != 'e') | 952 | if (c != 'a' && c != 'c' && c != 'p' && c != 'e') | ||
953 | c = 0; | 953 | c = 0; | ||
954 | setGlPreferBufferSwap(c); | 954 | setGlPreferBufferSwap(c); | ||
955 | 955 | | |||
956 | m_xrenderSmoothScale = config.readEntry("XRenderSmoothScale", false); | 956 | m_xrenderSmoothScale = config.readEntry("XRenderSmoothScale", false); | ||
957 | 957 | | |||
958 | HiddenPreviews previews = Options::defaultHiddenPreviews(); | 958 | HiddenPreviews previews = Options::defaultHiddenPreviews(); | ||
959 | // 4 - off, 5 - shown, 6 - always, other are old values | 959 | // 4 - off, 5 - shown, 6 - always, other are old values | ||
▲ Show 20 Lines • Show All 164 Lines • Show Last 20 Lines |