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-09 10:06:04 (GMT) |
commit | bf1cb011f23f1779fccd8c911afbdc5765fb316d (patch) | |
tree | 7f18a3f33890dd7c42ce4e21f272f56d76ef9727 /src/opengl | |
parent | 35cbf6b191fdf7c86ff8c4e9d41a152e04302797 (diff) | |
download | Qt-bf1cb011f23f1779fccd8c911afbdc5765fb316d.zip Qt-bf1cb011f23f1779fccd8c911afbdc5765fb316d.tar.gz Qt-bf1cb011f23f1779fccd8c911afbdc5765fb316d.tar.bz2 |
Fix code style in qgl_symbian.cpp
Reviewed-by: TRUSTME
Diffstat (limited to 'src/opengl')
-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; } } |