--- a/m3g/m3gcore11/src/m3g_symbian_gl.cpp Tue Feb 02 01:47:50 2010 +0200
+++ b/m3g/m3gcore11/src/m3g_symbian_gl.cpp Fri Apr 16 16:21:04 2010 +0300
@@ -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;
}