Enforce larger display size for hardware only NewGraphicsArchitecture PDK_3.0.0
authorShabe Razvi <shaber@symbian.org>
Fri, 02 Jul 2010 18:24:10 +0100
branchNewGraphicsArchitecture
changeset 107 97c593d3e0a5
parent 104 2ae553ab1feb
child 112 5981337c8beb
Enforce larger display size for hardware only
openvg/openvgrefimplementation/sfopenvg/sfopenvg/riMiniEGL.cpp
openvg/openvgrefimplementation/sfopenvg/vgi/vgi.cpp
--- 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: