mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-28 20:32:28 +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::endl;
|
||||||
using std::string;
|
using std::string;
|
||||||
|
|
||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
namespace frontend {
|
namespace frontend {
|
||||||
|
|
||||||
namespace {
|
|
||||||
|
|
||||||
|
|
||||||
} // anon namespace
|
|
||||||
|
|
||||||
GuiPainter::GuiPainter(QPaintDevice * device)
|
GuiPainter::GuiPainter(QPaintDevice * device)
|
||||||
: QPainter(device), Painter(),
|
: QPainter(device), Painter(),
|
||||||
use_pixmap_cache_(lyxrc.use_pixmap_cache && USE_PIXMAP_CACHE)
|
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);
|
min.getRgbF(&minr, &ming, &minb);
|
||||||
max.getRgbF(&maxr, &maxg, &maxb);
|
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…
x
Reference in New Issue
Block a user