--- a/openvg/openvgrefimplementation/sfopenvg/sfopenvg/riMiniEGL.cpp Thu Jul 01 13:26:34 2010 +0100
+++ b/openvg/openvgrefimplementation/sfopenvg/sfopenvg/riMiniEGL.cpp Fri Jul 02 18:24:10 2010 +0100
@@ -1650,9 +1650,13 @@
VGImageFormat format;
int* data = NULL;
EGLBoolean err = OSGetNativePixmapInfo(pixmap, &width, &height, &stride,&format, &data);
- width = 640;
- height = 480; // enforce the largest current target hardware display size
-
+
+ // enforce the largest current target hardware display size
+ #ifndef __WINS__
+ width = 640;
+ height = 480;
+ #endif
+
Drawable* d = NULL;
RIEGLSurface* s = NULL;
try
--- a/openvg/openvgrefimplementation/sfopenvg/vgi/vgi.cpp Thu Jul 01 13:26:34 2010 +0100
+++ b/openvg/openvgrefimplementation/sfopenvg/vgi/vgi.cpp Fri Jul 02 18:24:10 2010 +0100
@@ -19,8 +19,14 @@
#include <vg\vgcontext_symbian.h>
#include <egl.h>
-#define MAX_WIDTH 640*4 // in bytes
-#define MAX_HEIGHT 480*4 // in bytes
+#ifdef __WINS__
+ #define MAX_WIDTH 320*4 // in bytes
+ #define MAX_HEIGHT 320*4 // in bytes
+#else
+ #define MAX_WIDTH 640*4 // in bytes
+ #define MAX_HEIGHT 480*4 // in bytes
+#endif
+
class TEgl
{
public: