--- a/openvg/openvgrefimplementation/sfopenvg/sfopenvg/symbian/riEGLOS.cpp Fri Jul 02 12:05:03 2010 +0100
+++ b/openvg/openvgrefimplementation/sfopenvg/sfopenvg/symbian/riEGLOS.cpp Fri Jul 02 18:48:10 2010 +0100
@@ -101,6 +101,10 @@
return NULL;
}
ctx->iNativeWindowType = (TNativeWindowType*)window;
+ RWindow* win = (RWindow*) window;
+ TSize size = TSize(win->Size());
+ ctx->iNativeWindowType->iSize.iWidth = size.iWidth;
+ ctx->iNativeWindowType->iSize.iHeight = size.iHeight;
return ctx;
}
@@ -128,8 +132,14 @@
OSWindowContext* ctx = (OSWindowContext*)context;
if(ctx)
{
- width=ctx->iNativeWindowType->iSize.iWidth;
- height=ctx->iNativeWindowType->iSize.iHeight;
+ if ( ctx->iNativeWindowType->iSize.iWidth < 360 )
+ ctx->iNativeWindowType->iSize.iWidth;
+ else
+ width= 360;//ctx->iNativeWindowType->iSize.iWidth;
+ if ( ctx->iNativeWindowType->iSize.iHeight < 640 )
+ ctx->iNativeWindowType->iSize.iHeight;
+ else
+ height= 640; //ctx->iNativeWindowType->iSize.iHeight;
}
else
{