git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21495 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2007-11-07 20:44:36 +00:00
parent a15472ecfe
commit 5253f5f17d

View File

@ -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;
}