mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-05 13:26:21 +00:00
Abdel?
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21495 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
a15472ecfe
commit
5253f5f17d
@ -40,14 +40,10 @@
|
||||
using std::endl;
|
||||
using std::string;
|
||||
|
||||
|
||||
namespace lyx {
|
||||
namespace frontend {
|
||||
|
||||
namespace {
|
||||
|
||||
|
||||
} // anon namespace
|
||||
|
||||
GuiPainter::GuiPainter(QPaintDevice * device)
|
||||
: QPainter(device), Painter(),
|
||||
use_pixmap_cache_(lyxrc.use_pixmap_cache && USE_PIXMAP_CACHE)
|
||||
@ -138,7 +134,9 @@ QColor GuiPainter::filterColor(QColor const & col)
|
||||
min.getRgbF(&minr, &ming, &minb);
|
||||
max.getRgbF(&maxr, &maxg, &maxb);
|
||||
|
||||
return QColor(v*minr+(1-v)*maxr, v*ming+(1-v)*maxg, v*minb+(1-v)*maxb);
|
||||
QColor c;
|
||||
c.setRgbF(v*minr+(1-v)*maxr, v*ming+(1-v)*maxg, v*minb+(1-v)*maxb);
|
||||
return c;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user