Merge branch 'dev' into pfcorrect-cleanup

This commit is contained in:
heckflosse
2018-03-20 14:26:55 +01:00
22 changed files with 525 additions and 363 deletions

View File

@@ -1,5 +1,6 @@
# Common source files for both CLI and non-CLI execautables
set(CLISOURCEFILES
alignedmalloc.cc
edit.cc
main-cli.cc
multilangmgr.cc
@@ -11,6 +12,7 @@ set(CLISOURCEFILES
set(NONCLISOURCEFILES
adjuster.cc
alignedmalloc.cc
batchqueue.cc
batchqueuebuttonset.cc
batchqueueentry.cc

31
rtgui/alignedmalloc.cc Normal file
View File

@@ -0,0 +1,31 @@
/*
* This file is part of RawTherapee.
*
* Copyright (C) 2018 Flössie <floessie.mail@gmail.com>
*
* RawTherapee is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* RawTherapee is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with RawTherapee. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#ifdef HAVE_UNALIGNED_MALLOC
#include <malloc.h>
void* malloc(size_t size)
{
return memalign(16, size);
}
#endif

View File

@@ -21,6 +21,7 @@
#define __CONFIG_H__
#cmakedefine BUILD_BUNDLE
#cmakedefine HAVE_UNALIGNED_MALLOC
#define DATA_SEARCH_PATH "${DATADIR}"
#define DOC_SEARCH_PATH "${DOCDIR}"
#define CREDITS_SEARCH_PATH "${CREDITSDIR}"

View File

@@ -943,7 +943,6 @@ bool ToneCurve::histmatchingComputed()
brightness->setValue(0);
contrast->setValue(0);
black->setValue(0);
hlcompr->setValue(0);
if (!black->getAddMode()) {
shcompr->set_sensitive(!((int)black->getValue() == 0));