diff -r 15bf7259bb7c -r d8a3531bc6b8 uiacceltk/hitchcock/coretoolkit/rendervg10/src/HuiVg10Texture.cpp --- a/uiacceltk/hitchcock/coretoolkit/rendervg10/src/HuiVg10Texture.cpp Tue Feb 02 07:56:43 2010 +0200 +++ b/uiacceltk/hitchcock/coretoolkit/rendervg10/src/HuiVg10Texture.cpp Mon Feb 22 17:57:49 2010 +0200 @@ -1082,7 +1082,7 @@ image = CreateRenderedImage(&nvgEngine, dataBuf, Size()); // New functionality for checking the mask - if (header.GetBitmapId() != maskHeader.GetBitmapId() && + if (header.GetBitmapId() != maskHeader.GetBitmapId() && maskDataBuf && CompareNvgData(dataBuf, maskDataBuf) != 0) { VGImage maskImg = VG_INVALID_HANDLE; @@ -1436,14 +1436,7 @@ TSize CHuiVg10Texture::ApplyMargin(VGImage aImage, TSize aSize, EGLDisplay aDisplay, EGLSurface aSurface, EGLContext aContext) { HUI_VG_INVARIANT(); - // If the icon is also a current EGL surface, the getImageSubData - // won't succeed and return "image in use" -error.. - if ( eglMakeCurrent( aDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT ) == EGL_FALSE ) - { - HUI_DEBUG1(_L("CHuiVg10Texture::ApplyMargin() - EGL NO_Surface could not be made current, eglErr: %04x"), eglGetError()); - return aSize; - } - + #ifndef __WINS__ // Should possibly query the supported mode instead? VGImageFormat imageInternalFormat = VG_sARGB_8888_PRE; #else @@ -1470,7 +1463,7 @@ TReal R = 1.0; TInt HaN = Ha; - const TInt lastColumn = aSize.iHeight - 1; + const TInt lastColumn = aSize.iWidth - 1; for (TInt curRow = 0; curRow < lValidMargin; curRow++) { const TInt y = (aSize.iHeight - 1) - curRow; // h - 1 is the last line @@ -1493,13 +1486,6 @@ delete buf; HUI_VG_INVARIANT(); - // Make the PBuffer surface current again - if ( eglMakeCurrent(aDisplay, aSurface, aSurface, aContext) == EGL_FALSE ) - { - HUI_DEBUG1(_L("CHuiVg10Texture::ApplyMargin() - EGL aSurface could not be made current, eglErr: %04x"), eglGetError()); - return aSize; - } - // If icon size has to be changed, clear out old area for new DrawNVG round! if(aSize.iHeight > HaN) {