[Spice-commits] src/channel-display.c
Frediano Ziglio
fziglio at kemper.freedesktop.org
Tue Jan 30 15:00:54 UTC 2018
src/channel-display.c | 17 -----------------
1 file changed, 17 deletions(-)
New commits:
commit d98073f5efc28ffb46fac240b7a7034f4316c8a4
Author: Frediano Ziglio <fziglio at redhat.com>
Date: Thu Jan 18 15:03:05 2018 +0000
channel-display: Removed only assigned dc field from _SpiceDisplayChannelPrivate
This was used by GDI canvas rendering which has been removed from
spice-common.
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
Acked-by: Christophe de Dinechin <dinechin at redhat.com>
diff --git a/src/channel-display.c b/src/channel-display.c
index 84ad4af..45fe38c 100644
--- a/src/channel-display.c
+++ b/src/channel-display.c
@@ -70,9 +70,6 @@ struct _SpiceDisplayChannelPrivate {
GArray *monitors;
guint monitors_max;
gboolean enable_adaptive_streaming;
-#ifdef G_OS_WIN32
- HDC dc;
-#endif
SpiceGlScanout scanout;
};
@@ -821,17 +818,6 @@ static SpiceImageSurfacesOps image_surfaces_ops = {
.get = surfaces_get
};
-#if defined(G_OS_WIN32)
-static HDC create_compatible_dc(void)
-{
- HDC dc = CreateCompatibleDC(NULL);
- if (!dc) {
- g_warning("create compatible DC failed");
- }
- return dc;
-}
-#endif
-
static void spice_display_channel_reset_capabilities(SpiceChannel *channel)
{
guint i;
@@ -880,9 +866,6 @@ static void spice_display_channel_init(SpiceDisplayChannel *channel)
c->image_cache.ops = &image_cache_ops;
c->palette_cache.ops = &palette_cache_ops;
c->image_surfaces.ops = &image_surfaces_ops;
-#if defined(G_OS_WIN32)
- c->dc = create_compatible_dc();
-#endif
c->monitors_max = 1;
c->scanout.fd = -1;
More information about the Spice-commits
mailing list