# HG changeset patch # User bdonegan # Date 1287742306 -3600 # Node ID 3f7664f3b0f411506bc546fe85973f3b0d97d046 # Parent 71a455a885b7b9567e98fc783fa46bdadf11464a Stop flickering and set painter diff -r 71a455a885b7 -r 3f7664f3b0f4 egl/sfegltest/src/eglrendering.cpp --- a/egl/sfegltest/src/eglrendering.cpp Fri Oct 22 10:41:04 2010 +0100 +++ b/egl/sfegltest/src/eglrendering.cpp Fri Oct 22 11:11:46 2010 +0100 @@ -21,12 +21,11 @@ /** Attributes to be passed into eglChooseConfig */ -const EGLint KColorRGBA8888AttribList[] = +const EGLint KColorRGB565AttribList[] = { - EGL_RED_SIZE, 8, - EGL_GREEN_SIZE, 8, - EGL_BLUE_SIZE, 8, - EGL_ALPHA_SIZE, 8, + EGL_RED_SIZE, 5, + EGL_GREEN_SIZE, 6, + EGL_BLUE_SIZE, 5, EGL_SURFACE_TYPE, EGL_WINDOW_BIT, EGL_RENDERABLE_TYPE, EGL_OPENVG_BIT, EGL_NONE @@ -179,7 +178,7 @@ EGLConfig chosenConfig = 0; // Choose the config to use - EGLCheckReturnError(eglChooseConfig(iDisplay, KColorRGBA8888AttribList, &chosenConfig, 1, &numConfigs)); + EGLCheckReturnError(eglChooseConfig(iDisplay, KColorRGB565AttribList, &chosenConfig, 1, &numConfigs)); RDebug::Printf("CEGLRendering::ConstructL 3"); if (numConfigs == 0) { @@ -250,6 +249,8 @@ ASSERT(vgGetError() == VG_NO_ERROR); RDebug::Printf("vgAppendPathData"); + vgSetPaint(strokePaint, VG_STROKE_PATH); + // Draw the star directly using the OpenVG API. vgDrawPath(path, VG_FILL_PATH | VG_STROKE_PATH); ASSERT(vgGetError() == VG_NO_ERROR); @@ -265,7 +266,7 @@ void CEGLRendering::UpdateDisplay() { // Flush colour buffer to the window surface - CEGLRendering::EGLCheckReturnError(eglSwapBuffers(iDisplay, iSurface)); + //CEGLRendering::EGLCheckReturnError(eglSwapBuffers(iDisplay, iSurface)); } /** Callback called by refresh timer */