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

win32u: Remove now unnecessary reset_display_manager_ctx.

parent 64a7ca75
...@@ -1485,21 +1485,6 @@ static const struct gdi_device_manager device_manager = ...@@ -1485,21 +1485,6 @@ static const struct gdi_device_manager device_manager =
add_modes, add_modes,
}; };
static void reset_display_manager_ctx( struct device_manager_ctx *ctx )
{
HANDLE mutex = ctx->mutex;
if (ctx->source_key)
{
NtClose( ctx->source_key );
last_query_display_time = 0;
}
if (ctx->gpu_count) cleanup_devices();
memset( ctx, 0, sizeof(*ctx) );
if ((ctx->mutex = mutex)) prepare_devices();
}
static void release_display_manager_ctx( struct device_manager_ctx *ctx ) static void release_display_manager_ctx( struct device_manager_ctx *ctx )
{ {
if (ctx->mutex) if (ctx->mutex)
...@@ -1508,7 +1493,13 @@ static void release_display_manager_ctx( struct device_manager_ctx *ctx ) ...@@ -1508,7 +1493,13 @@ static void release_display_manager_ctx( struct device_manager_ctx *ctx )
release_display_device_init_mutex( ctx->mutex ); release_display_device_init_mutex( ctx->mutex );
ctx->mutex = 0; ctx->mutex = 0;
} }
reset_display_manager_ctx( ctx );
if (ctx->source_key)
{
NtClose( ctx->source_key );
last_query_display_time = 0;
}
if (ctx->gpu_count) cleanup_devices();
} }
static void clear_display_devices(void) static void clear_display_devices(void)
......
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