[Spice-devel] [PATCH 21/24] mingw32 build: fix two functions

Alon Levy alevy at redhat.com
Tue Dec 7 13:28:20 PST 2010


---
 client/windows/red_window.cpp |    5 -----
 common/canvas_base.c          |    2 +-
 2 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/client/windows/red_window.cpp b/client/windows/red_window.cpp
index 6d8a70d..56a757b 100644
--- a/client/windows/red_window.cpp
+++ b/client/windows/red_window.cpp
@@ -80,11 +80,6 @@ static inline RedKey translate_key(int virtual_key, uint32_t scan, bool escape)
     }
 }
 
-static int menu_cmd_to_app(WPARAM wparam)
-{
-    return 0;
-}
-
 static inline void send_filtered_keys(RedWindow* window)
 {
     KeysList::iterator iter;
diff --git a/common/canvas_base.c b/common/canvas_base.c
index 6d101f4..db83245 100644
--- a/common/canvas_base.c
+++ b/common/canvas_base.c
@@ -115,7 +115,7 @@ static inline uint32_t canvas_16bpp_to_32bpp(uint32_t color)
 
     return ret;
 }
-#ifdef WIN32
+#if defined(WIN32) && defined(GDI_CANVAS)
 static HDC create_compatible_dc()
 {
     HDC dc = CreateCompatibleDC(NULL);
-- 
1.7.3.2



More information about the Spice-devel mailing list