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

Hans de Goede hdegoede at redhat.com
Wed Dec 8 00:45:43 PST 2010


Ack.

On 12/07/2010 10:28 PM, Alon Levy wrote:
> ---
>   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);


More information about the Spice-devel mailing list