diff options
author | Jani Hautakangas <jani.hautakangas@nokia.com> | 2011-02-09 10:06:04 (GMT) |
---|---|---|
committer | Jani Hautakangas <jani.hautakangas@nokia.com> | 2011-02-25 13:36:48 (GMT) |
commit | efe5a9415f69e5a9ab7a46efa91d465616364371 (patch) | |
tree | 3ae65ad4488bbeaa0aaea3b3e5da346e907f96b2 /src/opengl/qgl_symbian.cpp | |
parent | 1b71e4082fcb1f3b112cc786ef577e0bf8cffa4c (diff) | |
download | Qt-efe5a9415f69e5a9ab7a46efa91d465616364371.zip Qt-efe5a9415f69e5a9ab7a46efa91d465616364371.tar.gz Qt-efe5a9415f69e5a9ab7a46efa91d465616364371.tar.bz2 |
Fix code style in qgl_symbian.cpp
Reviewed-by: TRUSTME
Diffstat (limited to 'src/opengl/qgl_symbian.cpp')
-rw-r--r-- | src/opengl/qgl_symbian.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/opengl/qgl_symbian.cpp b/src/opengl/qgl_symbian.cpp index 3426a4c..a9e2248 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; } } |