diff options
Diffstat (limited to 'tderandr/libtderandr.cpp')
-rw-r--r-- | tderandr/libtderandr.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tderandr/libtderandr.cpp b/tderandr/libtderandr.cpp index f510ca8ab..1900f8503 100644 --- a/tderandr/libtderandr.cpp +++ b/tderandr/libtderandr.cpp @@ -539,7 +539,7 @@ TQPoint KRandrSimpleAPI::applyDisplayConfiguration(TQString profilename, TQStrin TQPtrList<SingleScreenData> screenInfoArray; screenInfoArray = loadDisplayConfiguration(profilename, kde_confdir); if (screenInfoArray.count() > 0) { - applyDisplayConfiguration(screenInfoArray, FALSE, kde_confdir); + applyDisplayConfiguration(screenInfoArray, false, kde_confdir); } destroyScreenInformationObject(screenInfoArray); screenInfoArray = readCurrentDisplayConfiguration(); @@ -646,11 +646,11 @@ bool KRandrSimpleAPI::applyDisplayConfiguration(TQPtrList<SingleScreenData> scre SingleScreenData *screendata; TQPtrList<SingleScreenData> oldconfig; - if (test == TRUE) { + if (test) { oldconfig = readCurrentDisplayConfiguration(); } - if (isValid() == true) { + if (isValid()) { #ifdef USE_XRANDR_PROGRAM // Assemble the command string for xrandr TQString command; @@ -703,7 +703,7 @@ bool KRandrSimpleAPI::applyDisplayConfiguration(TQPtrList<SingleScreenData> scre if(xrandr_command_output.startsWith("xrandr: Failed to get size of gamma for output")) { KMessageBox::sorry(0, xrandr_command_output, i18n("Setting gamma failed.")); } else if (xrandr_command_output != "") { - applyDisplayConfiguration(oldconfig, FALSE, kde_confdir); + applyDisplayConfiguration(oldconfig, false, kde_confdir); accepted = false; destroyScreenInformationObject(oldconfig); KMessageBox::sorry(0, xrandr_command_output, i18n("XRandR encountered a problem")); @@ -804,10 +804,10 @@ bool KRandrSimpleAPI::applyDisplayConfiguration(TQPtrList<SingleScreenData> scre applySystemWideIccConfiguration(kde_confdir); applyIccConfiguration(current_icc_profile, kde_confdir); - if (test == TRUE) { + if (test) { int ret = showTestConfigurationDialog(); if (!ret) { - applyDisplayConfiguration(oldconfig, FALSE, kde_confdir); + applyDisplayConfiguration(oldconfig, false, kde_confdir); accepted = false; } destroyScreenInformationObject(oldconfig); |