m3g/m3gcore11/src/m3g_symbian_gl.cpp
branchRCL_3
changeset 1 fed1595b188e
parent 0 5d03bc08d59c
--- a/m3g/m3gcore11/src/m3g_symbian_gl.cpp	Tue Feb 02 01:47:50 2010 +0200
+++ b/m3g/m3gcore11/src/m3g_symbian_gl.cpp	Sat Feb 20 00:07:50 2010 +0200
@@ -43,6 +43,7 @@
     case EColor16MU:
         return M3G_BGR8_32;
     case EColor16MA:    
+    case EColor16MAP:    
         return M3G_BGRA8;
     case ERgb:
         return M3G_RGB8_32;
@@ -84,7 +85,7 @@
  */
 extern "C" M3Gbool m3gglGetNativeBitmapParams(M3GNativeBitmap bitmap,
                                               M3GPixelFormat *format,
-                                              M3Gint *width, M3Gint *height)
+                                              M3Gint *width, M3Gint *height, M3Gint *pixels)
 {
     CFbsBitmap *pBitmap = (CFbsBitmap *) bitmap;
 
@@ -94,6 +95,10 @@
     *width = size.iWidth;
     *height = size.iHeight;
     
+    pBitmap->LockHeap();
+    *pixels = (M3Gint) pBitmap->DataAddress();
+    pBitmap->UnlockHeap();
+    
     return M3G_TRUE;
 }