From bf1cb011f23f1779fccd8c911afbdc5765fb316d Mon Sep 17 00:00:00 2001 From: Jani Hautakangas Date: Wed, 9 Feb 2011 12:06:04 +0200 Subject: Fix code style in qgl_symbian.cpp Reviewed-by: TRUSTME --- src/opengl/qgl_symbian.cpp | 8 ++++---- 1 file 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; } } -- cgit v0.12