[cogl/msvc-support] Update cogl/winsys/cogl-winsys-stub.c
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/msvc-support] Update cogl/winsys/cogl-winsys-stub.c
- Date: Thu, 2 Jun 2011 07:38:12 +0000 (UTC)
commit c09406ab6e95cb7b99ff7c3ec6be86a7f450cc8d
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Thu Jun 2 15:52:54 2011 +0800
Update cogl/winsys/cogl-winsys-stub.c
Deal with c99ism... I know it's not pretty, but it is the way
to go with non-c99 compilers. That's life...
cogl/winsys/cogl-winsys-stub.c | 37 ++++++++++++++++++-------------------
1 files changed, 18 insertions(+), 19 deletions(-)
---
diff --git a/cogl/winsys/cogl-winsys-stub.c b/cogl/winsys/cogl-winsys-stub.c
index ef22e13..2430ef6 100644
--- a/cogl/winsys/cogl-winsys-stub.c
+++ b/cogl/winsys/cogl-winsys-stub.c
@@ -132,25 +132,24 @@ _cogl_winsys_onscreen_set_visibility (CoglOnscreen *onscreen,
{
}
-static CoglWinsysVtable _cogl_winsys_vtable =
- {
- .name = "STUB",
- .get_proc_address = _cogl_winsys_get_proc_address,
- .renderer_connect = _cogl_winsys_renderer_connect,
- .renderer_disconnect = _cogl_winsys_renderer_disconnect,
- .display_setup = _cogl_winsys_display_setup,
- .display_destroy = _cogl_winsys_display_destroy,
- .context_init = _cogl_winsys_context_init,
- .context_deinit = _cogl_winsys_context_deinit,
-
- .onscreen_init = _cogl_winsys_onscreen_init,
- .onscreen_deinit = _cogl_winsys_onscreen_deinit,
- .onscreen_bind = _cogl_winsys_onscreen_bind,
- .onscreen_swap_buffers = _cogl_winsys_onscreen_swap_buffers,
- .onscreen_update_swap_throttled =
- _cogl_winsys_onscreen_update_swap_throttled,
- .onscreen_set_visibility = _cogl_winsys_onscreen_set_visibility,
- };
+static CoglWinsysVtable _cogl_winsys_vtable =
+{
+ "STUB", /*.name*/
+ _cogl_winsys_get_proc_address, /*.get_proc_address =*/
+ _cogl_winsys_renderer_connect, /*.renderer_connect =*/
+ _cogl_winsys_renderer_disconnect, /*.renderer_disconnect =*/
+ _cogl_winsys_display_setup, /*.display_setup =*/
+ _cogl_winsys_display_destroy, /*.display_destroy =*/
+ _cogl_winsys_context_init, /*.context_init =*/
+ _cogl_winsys_context_deinit, /*.context_deinit =*/
+
+ _cogl_winsys_onscreen_init, /*.onscreen_init =*/
+ _cogl_winsys_onscreen_deinit, /*.onscreen_deinit =*/
+ _cogl_winsys_onscreen_bind, /*.onscreen_bind =*/
+ _cogl_winsys_onscreen_swap_buffers, /*.onscreen_swap_buffers =*/
+ _cogl_winsys_onscreen_update_swap_throttled,/*.onscreen_update_swap_throttled =*/
+ _cogl_winsys_onscreen_set_visibility, /*.onscreen_set_visibility =*/
+};
const CoglWinsysVtable *
_cogl_winsys_stub_get_vtable (void)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]