Signed-off-by: Tapani Pälli <[email protected]>
---
src/waffle/nacl/nacl_window.c | 10 +++++++++-
src/waffle/nacl/nacl_window.h | 3 ++-
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/src/waffle/nacl/nacl_window.c b/src/waffle/nacl/nacl_window.c
index c5ba4e0..3596327 100644
--- a/src/waffle/nacl/nacl_window.c
+++ b/src/waffle/nacl/nacl_window.c
@@ -24,6 +24,7 @@
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "wcore_error.h"
+#include "wcore_attrib_list.h"
#include "nacl_config.h"
#include "nacl_display.h"
#include "nacl_window.h"
@@ -47,11 +48,18 @@ struct wcore_window*
nacl_window_create(struct wcore_platform *wc_plat,
struct wcore_config *wc_config,
int width,
- int height)
+ int height,
+ const intptr_t attrib_list[])
+
{
struct nacl_window *self;
bool ok = true;
+ if (wcore_attrib_list_length(attrib_list) > 0) {
+ wcore_error_bad_attribute(attrib_list[0]);
+ return NULL;
+ }
+
self = wcore_calloc(sizeof(*self));
if (self == NULL)
return NULL;
diff --git a/src/waffle/nacl/nacl_window.h b/src/waffle/nacl/nacl_window.h
index 5f0906d..48567b1 100644
--- a/src/waffle/nacl/nacl_window.h
+++ b/src/waffle/nacl/nacl_window.h
@@ -43,7 +43,8 @@ struct wcore_window*
nacl_window_create(struct wcore_platform *wc_plat,
struct wcore_config *wc_config,
int width,
- int height);
+ int height,
+ const intptr_t attrib_list[]);
bool
nacl_window_destroy(struct wcore_window *wc_self);
--
2.1.0
_______________________________________________
waffle mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/waffle