graphicscomposition/openwfcompositionengine/composition/src/wfcelement.c
branchRCL_3
changeset 20 25ffed67c7ef
parent 19 bbf46f59e123
--- a/graphicscomposition/openwfcompositionengine/composition/src/wfcelement.c	Tue Aug 31 16:31:06 2010 +0300
+++ b/graphicscomposition/openwfcompositionengine/composition/src/wfcelement.c	Wed Sep 01 12:39:21 2010 +0100
@@ -1,5 +1,4 @@
-/* Copyright (c) 2009-2010 The Khronos Group Inc.
- * Portions copyright (c) 2009-2010  Nokia Corporation and/or its subsidiary(-ies)
+/* Copyright (c) 2009 The Khronos Group Inc.
  *
  * Permission is hereby granted, free of charge, to any person obtaining a
  * copy of this software and/or associated documentation files (the
@@ -142,8 +141,6 @@
 {
     static WFCint           nextElementHandle = FIRST_ELEMENT_HANDLE;
     WFC_ELEMENT*            element;
-	
-	OWF_ASSERT(context);
 
     element = (WFC_ELEMENT*)OWF_Pool_GetObject(context->elementPool);
 
@@ -393,7 +390,10 @@
 
         case WFC_ELEMENT_SOURCE_FLIP:
         {
-            result = WFC_ERROR_NONE;
+            WFCboolean  flip = (WFCboolean) value;
+
+            result = BOOLEAN_TO_ERROR((WFC_TRUE == flip ||
+                                       WFC_FALSE == flip));
             break;
         }