Commit c635a25f authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

win32u: Rename struct adapter to struct source.

To match the D3DKMT terminology and avoid confusion between the GPUs, which are called adapter there.
parent fecfb442
......@@ -287,7 +287,7 @@ BOOL ANDROID_UpdateDisplayDevices( const struct gdi_device_manager *device_manag
.dmBitsPerPel = screen_bpp, .dmPelsWidth = screen_width, .dmPelsHeight = screen_height, .dmDisplayFrequency = 60,
};
device_manager->add_gpu( &gpu, param );
device_manager->add_adapter( "Default", source_flags, param );
device_manager->add_source( "Default", source_flags, param );
device_manager->add_monitor( &gdi_monitor, param );
device_manager->add_mode( &mode, TRUE, param );
force_display_devices_refresh = FALSE;
......
......@@ -1181,7 +1181,7 @@ BOOL macdrv_UpdateDisplayDevices( const struct gdi_device_manager *device_manage
char buffer[32];
sprintf( buffer, "%04x", adapter->id );
device_manager->add_adapter( buffer, adapter->state_flags, param );
device_manager->add_source( buffer, adapter->state_flags, param );
if (macdrv_get_monitors(adapter->id, &monitors, &monitor_count)) break;
TRACE("adapter: %#x, monitor count: %d\n", adapter->id, monitor_count);
......
......@@ -210,12 +210,12 @@ static void wayland_add_device_gpu(const struct gdi_device_manager *device_manag
device_manager->add_gpu(&gpu, param);
}
static void wayland_add_device_adapter(const struct gdi_device_manager *device_manager,
static void wayland_add_device_source(const struct gdi_device_manager *device_manager,
void *param, UINT state_flags, struct output_info *output_info)
{
TRACE("name=%s state_flags=0x%x\n",
output_info->output->name, state_flags);
device_manager->add_adapter(output_info->output->name, state_flags, param);
device_manager->add_source(output_info->output->name, state_flags, param);
}
static void wayland_add_device_monitor(const struct gdi_device_manager *device_manager,
......@@ -305,7 +305,7 @@ BOOL WAYLAND_UpdateDisplayDevices(const struct gdi_device_manager *device_manage
wl_array_for_each(output_info, &output_info_array)
{
wayland_add_device_adapter(device_manager, param, state_flags, output_info);
wayland_add_device_source(device_manager, param, state_flags, output_info);
wayland_add_device_monitor(device_manager, param, output_info);
wayland_add_device_modes(device_manager, param, output_info);
state_flags &= ~DISPLAY_DEVICE_PRIMARY_DEVICE;
......
......@@ -549,7 +549,7 @@ BOOL X11DRV_UpdateDisplayDevices( const struct gdi_device_manager *device_manage
BOOL is_primary = adapters[adapter].state_flags & DISPLAY_DEVICE_PRIMARY_DEVICE;
sprintf( buffer, "%04lx", adapters[adapter].id );
device_manager->add_adapter( buffer, adapters[adapter].state_flags, param );
device_manager->add_source( buffer, adapters[adapter].state_flags, param );
if (!host_handler.get_monitors( adapters[adapter].id, &monitors, &monitor_count )) break;
TRACE("adapter: %#lx, monitor count: %d\n", adapters[adapter].id, monitor_count);
......
......@@ -260,7 +260,7 @@ struct gdi_monitor
struct gdi_device_manager
{
void (*add_gpu)( const struct gdi_gpu *gpu, void *param );
void (*add_adapter)( const char *name, UINT state_flags, void *param );
void (*add_source)( const char *name, UINT state_flags, void *param );
void (*add_monitor)( const struct gdi_monitor *monitor, void *param );
void (*add_mode)( const DEVMODEW *mode, BOOL current, void *param );
};
......
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