Commit cc177e96 authored by Chad Versace's avatar Chad Versace

waffle: Fix signature of wcore_platform::window::create()

Fix signature to match that of waffle_window_create(). The types of
parameters 'width' and 'height' didn't match the public header.

As a consequence, also fix the signature of
${PLATFORM}_window_create() for all platforms.
Signed-off-by: default avatarChad Versace <chad.versace@intel.com>
Tested-by: Emil Velikov <emil.l.velikov@gmail.com> (msvc/wgl)
Reviewed-by: Emil Velikov's avatarEmil Velikov <emil.l.velikov@gmail.com>
parent 1d64175e
......@@ -37,8 +37,8 @@
struct wcore_window*
droid_window_create(struct wcore_platform *wc_plat,
struct wcore_config *wc_config,
int width,
int height)
int32_t width,
int32_t height)
{
struct droid_window *self;
struct wegl_config *config = wegl_config(wc_config);
......
......@@ -51,8 +51,8 @@ droid_window(struct wcore_window *wc_self)
struct wcore_window*
droid_window_create(struct wcore_platform *wc_plat,
struct wcore_config *wc_config,
int width,
int height);
int32_t width,
int32_t height);
bool
droid_window_destroy(struct wcore_window *wc_self);
......
......@@ -48,8 +48,8 @@ DEFINE_CONTAINER_CAST_FUNC(cgl_window,
struct wcore_window*
cgl_window_create(struct wcore_platform *wc_plat,
struct wcore_config *wc_config,
int width,
int height);
int32_t width,
int32_t height);
bool
cgl_window_destroy(struct wcore_window *wc_self);
......
......@@ -53,7 +53,7 @@ cgl_window_destroy(struct wcore_window *wc_self)
static WaffleGLView*
cgl_window_create_gl_view(int width, int height)
cgl_window_create_gl_view(int32_t width, int32_t height)
{
WaffleGLView *view = [[WaffleGLView alloc]
initWithFrame:NSMakeRect(0, 0, width, height)];
......@@ -94,8 +94,8 @@ cgl_window_create_ns_window(NSView *view)
struct wcore_window*
cgl_window_create(struct wcore_platform *wc_plat,
struct wcore_config *wc_config,
int width,
int height)
int32_t width,
int32_t height)
{
struct cgl_window *self;
bool ok = true;
......
......@@ -114,8 +114,8 @@ struct wcore_platform_vtbl {
struct wcore_window*
(*create)(struct wcore_platform *platform,
struct wcore_config *config,
int width,
int height);
int32_t width,
int32_t height);
bool
(*destroy)(struct wcore_window *window);
......
......@@ -59,8 +59,8 @@ wgbm_window_destroy(struct wcore_window *wc_self)
struct wcore_window*
wgbm_window_create(struct wcore_platform *wc_plat,
struct wcore_config *wc_config,
int width,
int height)
int32_t width,
int32_t height)
{
struct wgbm_display *dpy = wgbm_display(wc_config->display);
struct wgbm_platform *plat = wgbm_platform(wegl_platform(wc_plat));
......
......@@ -52,8 +52,8 @@ wgbm_window(struct wcore_window *wc_self)
struct wcore_window*
wgbm_window_create(struct wcore_platform *wc_plat,
struct wcore_config *wc_config,
int width,
int height);
int32_t width,
int32_t height);
bool
wgbm_window_destroy(struct wcore_window *wc_self);
......
......@@ -52,8 +52,8 @@ glx_window_destroy(struct wcore_window *wc_self)
struct wcore_window*
glx_window_create(struct wcore_platform *wc_plat,
struct wcore_config *wc_config,
int width,
int height)
int32_t width,
int32_t height)
{
struct glx_window *self;
struct glx_display *dpy = glx_display(wc_config->display);
......
......@@ -59,8 +59,8 @@ wayland_window(struct wcore_window *wc_self)
struct wcore_window*
wayland_window_create(struct wcore_platform *wc_plat,
struct wcore_config *wc_config,
int width,
int height);
int32_t width,
int32_t height);
bool
wayland_window_destroy(struct wcore_window *wc_self);
......
......@@ -68,8 +68,8 @@ wgl_window_priv_destroy(struct wcore_window *wc_self)
struct wcore_window*
wgl_window_create(struct wcore_platform *wc_plat,
struct wcore_config *wc_config,
int width,
int height)
int32_t width,
int32_t height)
{
struct wgl_config *config = wgl_config(wc_config);
bool ok;
......@@ -95,8 +95,8 @@ wgl_window_create(struct wcore_platform *wc_plat,
struct wcore_window*
wgl_window_priv_create(struct wcore_platform *wc_plat,
struct wcore_config *wc_config,
int width,
int height)
int32_t width,
int32_t height)
{
struct wgl_platform *plat = wgl_platform(wc_plat);
struct wgl_window *self;
......
......@@ -48,8 +48,8 @@ wgl_window(struct wcore_window *wcore)
struct wcore_window*
wgl_window_priv_create(struct wcore_platform *wc_plat,
struct wcore_config *wc_config,
int width,
int height);
int32_t width,
int32_t height);
bool
wgl_window_priv_destroy(struct wcore_window *wc_self);
......@@ -57,8 +57,8 @@ wgl_window_priv_destroy(struct wcore_window *wc_self);
struct wcore_window*
wgl_window_create(struct wcore_platform *wc_plat,
struct wcore_config *wc_config,
int width,
int height);
int32_t width,
int32_t height);
bool
wgl_window_destroy(struct wcore_window *wc_self);
......
......@@ -70,8 +70,8 @@ bool
x11_window_init(struct x11_window *self,
struct x11_display *dpy,
xcb_visualid_t visual_id,
int width,
int height)
int32_t width,
int32_t height)
{
xcb_colormap_t colormap = 0;
xcb_window_t window = 0;
......
......@@ -40,8 +40,8 @@ bool
x11_window_init(struct x11_window *self,
struct x11_display *dpy,
xcb_visualid_t visual_id,
int width,
int height);
int32_t width,
int32_t height);
bool
x11_window_teardown(struct x11_window *self);
......
......@@ -55,8 +55,8 @@ xegl_window_destroy(struct wcore_window *wc_self)
struct wcore_window*
xegl_window_create(struct wcore_platform *wc_plat,
struct wcore_config *wc_config,
int width,
int height)
int32_t width,
int32_t height)
{
struct xegl_window *self;
struct xegl_display *dpy = xegl_display(wc_config->display);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment