summaryrefslogtreecommitdiffstats
path: root/src/opengl
diff options
context:
space:
mode:
authorTrond Kjernåsen <trond@trolltech.com>2009-09-23 08:51:27 (GMT)
committerTrond Kjernåsen <trond@trolltech.com>2009-09-23 08:51:27 (GMT)
commitd05b4b85ebdf520895faa1e360aa673b739866a2 (patch)
tree2ff078bec0610110cfc18dc9a4d280904367fe81 /src/opengl
parente73d4d577410ce0724c818cd0d4a28b7ff7350bb (diff)
downloadQt-d05b4b85ebdf520895faa1e360aa673b739866a2.zip
Qt-d05b4b85ebdf520895faa1e360aa673b739866a2.tar.gz
Qt-d05b4b85ebdf520895faa1e360aa673b739866a2.tar.bz2
Added a comment to clarify the purpose of a piece of code.
Reviewed-by: Trust Me
Diffstat (limited to 'src/opengl')
-rw-r--r--src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp
index 25f4184..9db1de8 100644
--- a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp
+++ b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp
@@ -297,7 +297,7 @@ void QGLTextureGlyphCache::fillTexture(const Coord &c, glyph_t glyph)
for (int y = 0; y < maskHeight; ++y) {
uchar *src = (uchar *) mask.scanLine(y);
for (int x = 0; x < maskWidth; ++x)
- src[x] = -src[x];
+ src[x] = -src[x]; // convert 0 and 1 into 0 and 255
}
}