mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-07 01:27:12 +00:00
Fix order of initializers
C++ complaints if they are not in the order of declaration. Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
parent
81c04623ea
commit
48adb67c13
@ -1357,9 +1357,9 @@ void image_encoder_shared_stat_print(const ImageEncoderSharedData *shared_data)
|
||||
/* sum all statistics */
|
||||
stat_info_t total = {
|
||||
.count = 0,
|
||||
.total = 0,
|
||||
.orig_size = 0,
|
||||
.comp_size = 0,
|
||||
.total = 0
|
||||
};
|
||||
stat_sum(&total, &shared_data->off_stat);
|
||||
stat_sum(&total, &shared_data->quic_stat);
|
||||
|
||||
@ -494,8 +494,8 @@ typedef struct RedMessageConnect {
|
||||
RedChannel *channel;
|
||||
RedClient *client;
|
||||
RedStream *stream;
|
||||
RedChannelCapabilities caps;
|
||||
int migration;
|
||||
RedChannelCapabilities caps;
|
||||
} RedMessageConnect;
|
||||
|
||||
static void handle_dispatcher_connect(void *opaque, void *payload)
|
||||
|
||||
@ -471,12 +471,12 @@ void spice_qxl_gl_scanout(QXLInstance *qxl,
|
||||
}
|
||||
|
||||
qxl_state->scanout = (SpiceMsgDisplayGlScanoutUnix) {
|
||||
.flags = y_0_top ? SPICE_GL_SCANOUT_FLAGS_Y0TOP : 0,
|
||||
.drm_dma_buf_fd = fd,
|
||||
.width = width,
|
||||
.height = height,
|
||||
.stride = stride,
|
||||
.drm_fourcc_format = format
|
||||
.drm_fourcc_format = format,
|
||||
.flags = y_0_top ? SPICE_GL_SCANOUT_FLAGS_Y0TOP : 0,
|
||||
};
|
||||
|
||||
pthread_mutex_unlock(&qxl_state->scanout_mutex);
|
||||
|
||||
@ -307,8 +307,8 @@ static SimpleSpiceUpdate *test_spice_create_update_copy_bits(Test *test, uint32_
|
||||
QXLDrawable *drawable;
|
||||
int bw, bh;
|
||||
QXLRect bbox = {
|
||||
.left = 10,
|
||||
.top = 0,
|
||||
.left = 10,
|
||||
};
|
||||
|
||||
update = g_new0(SimpleSpiceUpdate, 1);
|
||||
@ -530,10 +530,10 @@ static void produce_command(Test *test)
|
||||
break;
|
||||
case SIMPLE_UPDATE: {
|
||||
QXLRect rect = {
|
||||
.left = 0,
|
||||
.right = (test->target_surface == 0 ? test->primary_width : test->width),
|
||||
.top = 0,
|
||||
.bottom = (test->target_surface == 0 ? test->primary_height : test->height)
|
||||
.left = 0,
|
||||
.bottom = (test->target_surface == 0 ? test->primary_height : test->height),
|
||||
.right = (test->target_surface == 0 ? test->primary_width : test->width),
|
||||
};
|
||||
if (rect.right > 0 && rect.bottom > 0) {
|
||||
spice_qxl_update_area(&test->qxl_instance, test->target_surface, &rect, NULL, 0, 1);
|
||||
@ -809,8 +809,8 @@ static QXLInterface display_sif = {
|
||||
.req_cursor_notification = req_cursor_notification,
|
||||
.notify_update = notify_update,
|
||||
.flush_resources = flush_resources,
|
||||
.client_monitors_config = client_monitors_config,
|
||||
.set_client_capabilities = set_client_capabilities,
|
||||
.client_monitors_config = client_monitors_config,
|
||||
};
|
||||
|
||||
/* interface for tests */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user