Convert all scales to int32_t

The type changed in the protocol, so update weston for this.
This commit is contained in:
Alexander Larsson
2013-05-24 13:09:43 +02:00
committed by Kristian Høgsberg
parent 14e438c8a2
commit edddbd14ac
6 changed files with 29 additions and 29 deletions
+2 -2
View File
@@ -114,7 +114,7 @@ struct x11_output {
int shm_id;
void *buf;
uint8_t depth;
uint32_t scale;
int32_t scale;
};
static struct xkb_keymap *
@@ -777,7 +777,7 @@ static struct x11_output *
x11_compositor_create_output(struct x11_compositor *c, int x, int y,
int width, int height, int fullscreen,
int no_input, char *configured_name,
uint32_t transform, uint32_t scale)
uint32_t transform, int32_t scale)
{
static const char name[] = "Weston Compositor";
static const char class[] = "weston-1\0Weston Compositor";
+6 -6
View File
@@ -94,7 +94,7 @@ sigchld_handler(int signal_number, void *data)
static void
weston_output_transform_init(struct weston_output *output, uint32_t transform);
static void
weston_output_scale_init(struct weston_output *output, uint32_t scale);
weston_output_scale_init(struct weston_output *output, int32_t scale);
WL_EXPORT int
weston_output_switch_mode(struct weston_output *output, struct weston_mode *mode)
@@ -365,7 +365,7 @@ weston_surface_to_global_float(struct weston_surface *surface,
WL_EXPORT void
weston_transformed_coord(int width, int height,
enum wl_output_transform transform,
uint32_t scale,
int32_t scale,
float sx, float sy, float *bx, float *by)
{
switch (transform) {
@@ -411,7 +411,7 @@ weston_transformed_coord(int width, int height,
WL_EXPORT pixman_box32_t
weston_transformed_rect(int width, int height,
enum wl_output_transform transform,
uint32_t scale,
int32_t scale,
pixman_box32_t rect)
{
float x1, x2, y1, y2;
@@ -1630,7 +1630,7 @@ surface_set_buffer_transform(struct wl_client *client,
static void
surface_set_buffer_scale(struct wl_client *client,
struct wl_resource *resource,
uint32_t scale)
int32_t scale)
{
struct weston_surface *surface = resource->data;
@@ -2669,7 +2669,7 @@ weston_output_transform_init(struct weston_output *output, uint32_t transform)
}
static void
weston_output_scale_init(struct weston_output *output, uint32_t scale)
weston_output_scale_init(struct weston_output *output, int32_t scale)
{
output->scale = scale;
}
@@ -2689,7 +2689,7 @@ weston_output_move(struct weston_output *output, int x, int y)
WL_EXPORT void
weston_output_init(struct weston_output *output, struct weston_compositor *c,
int x, int y, int width, int height, uint32_t transform,
uint32_t scale)
int32_t scale)
{
output->compositor = c;
output->x = x;
+7 -7
View File
@@ -183,7 +183,7 @@ struct weston_output {
char *make, *model, *serial_number;
uint32_t subpixel;
uint32_t transform;
uint32_t scale;
int32_t scale;
struct weston_mode *current;
struct weston_mode *origin;
@@ -612,7 +612,7 @@ struct weston_subsurface {
uint32_t buffer_transform;
/* wl_surface.set_buffer_scale */
uint32_t buffer_scale;
int32_t buffer_scale;
} cached;
int synchronized;
@@ -716,7 +716,7 @@ struct weston_surface {
struct weston_buffer_reference buffer_ref;
uint32_t buffer_transform;
uint32_t buffer_scale;
int32_t buffer_scale;
int keep_buffer; /* bool for backends to prevent early release */
/* All the pending state, that wl_surface.commit will apply. */
@@ -744,7 +744,7 @@ struct weston_surface {
uint32_t buffer_transform;
/* wl_surface.set_scaling_factor */
uint32_t buffer_scale;
int32_t buffer_scale;
} pending;
/*
@@ -1025,7 +1025,7 @@ void
weston_output_move(struct weston_output *output, int x, int y);
void
weston_output_init(struct weston_output *output, struct weston_compositor *c,
int x, int y, int width, int height, uint32_t transform, uint32_t scale);
int x, int y, int width, int height, uint32_t transform, int32_t scale);
void
weston_output_destroy(struct weston_output *output);
@@ -1156,12 +1156,12 @@ module_init(struct weston_compositor *compositor,
void
weston_transformed_coord(int width, int height,
enum wl_output_transform transform,
uint32_t scale,
int32_t scale,
float sx, float sy, float *bx, float *by);
pixman_box32_t
weston_transformed_rect(int width, int height,
enum wl_output_transform transform,
uint32_t scale,
int32_t scale,
pixman_box32_t rect);
#ifdef __cplusplus