# HG changeset patch # User Shabe Razvi # Date 1278091450 -3600 # Node ID 97c593d3e0a5cc43d1fa9381ea89bcc93120e376 # Parent 2ae553ab1febecccc1cac8a6509b810623ea272c Enforce larger display size for hardware only diff -r 2ae553ab1feb -r 97c593d3e0a5 openvg/openvgrefimplementation/sfopenvg/sfopenvg/riMiniEGL.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 diff -r 2ae553ab1feb -r 97c593d3e0a5 openvg/openvgrefimplementation/sfopenvg/vgi/vgi.cpp --- 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 #include -#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: