summaryrefslogtreecommitdiffstats
path: root/src/opengl
diff options
context:
space:
mode:
authorJani Hautakangas <jani.hautakangas@nokia.com>2011-02-09 12:06:04 +0200
committerJani Hautakangas <jani.hautakangas@nokia.com>2011-02-09 12:06:04 +0200
commitbf1cb011f23f1779fccd8c911afbdc5765fb316d (patch)
tree7f18a3f33890dd7c42ce4e21f272f56d76ef9727 /src/opengl
parent35cbf6b191fdf7c86ff8c4e9d41a152e04302797 (diff)
Fix code style in qgl_symbian.cpp
Reviewed-by: TRUSTME
Diffstat (limited to 'src/opengl')
-rw-r--r--src/opengl/qgl_symbian.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/opengl/qgl_symbian.cpp b/src/opengl/qgl_symbian.cpp
index 3426a4cf16..a9e22488b0 100644
--- a/src/opengl/qgl_symbian.cpp
+++ b/src/opengl/qgl_symbian.cpp
@@ -367,7 +367,7 @@ void QGLWidgetPrivate::recreateEglSurface()
static CFbsBitmap* createBlitCopy(CFbsBitmap* bitmap)
{
CFbsBitmap *copy = q_check_ptr(new CFbsBitmap);
- if(!copy)
+ if (!copy)
return 0;
if (copy->Create(bitmap->SizeInPixels(), bitmap->DisplayMode()) != KErrNone) {
@@ -425,17 +425,17 @@ void QGLPixmapData::fromNativeType(void* pixmap, NativeType type)
img = img.copy();
bitmap->EndDataAccess();
- if(displayMode == EGray2) {
+ if (displayMode == EGray2) {
//Symbian thinks set pixels are white/transparent, Qt thinks they are foreground/solid
//So invert mono bitmaps so that masks work correctly.
img.invertPixels();
- } else if(displayMode == EColor16M) {
+ } else if (displayMode == EColor16M) {
img = img.rgbSwapped(); // EColor16M is BGR
}
fromImage(img, Qt::AutoColor);
- if(deleteSourceBitmap)
+ if (deleteSourceBitmap)
delete bitmap;
}
}