From 91ed6e7ba2c129509cb05d9bd0a8d200dba00656 Mon Sep 17 00:00:00 2001 From: bernd Date: Mon, 1 Aug 2011 04:23:50 +0200 Subject: [PATCH] Unhate Sec by following the new global config framework --- simulat0r/gui/qsimulat0r.cc | 10 +++++----- simulat0r/tui/simulat0r.c | 9 ++++----- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/simulat0r/gui/qsimulat0r.cc b/simulat0r/gui/qsimulat0r.cc index c2146d2..4798a1f 100644 --- a/simulat0r/gui/qsimulat0r.cc +++ b/simulat0r/gui/qsimulat0r.cc @@ -92,15 +92,15 @@ public: pixmap.setPixel(1,1,(QColor(backlight,backlight,backlight).rgb())); pixmap.fill(pixmap.pixel(1,1)); + const int pixelOn=GLOBAL(lcdinvert)?colorInvertedPixelOn:colorPixelOn; + const int pixelOff=GLOBAL(lcdinvert)?colorInvertedPixelOff:colorPixelOff; + // draw lcd array for (int x = 0; x < dimx; ++x) { for(int y=0; y