[Spice-devel] [PATCH] spice-win: remove windows-specific bitmap cut & paste support

Hans de Goede hdegoede at redhat.com
Wed Oct 6 07:50:10 PDT 2010


ack.

On 10/06/2010 04:45 PM, Arnon Gilboa wrote:
> will wait until png comes in
> ---
>   client/windows/platform.cpp |   17 -----------------
>   1 files changed, 0 insertions(+), 17 deletions(-)
>
> diff --git a/client/windows/platform.cpp b/client/windows/platform.cpp
> index 580a40a..1157420 100644
> --- a/client/windows/platform.cpp
> +++ b/client/windows/platform.cpp
> @@ -78,7 +78,6 @@ typedef struct ClipboardFormat {
>
>   static ClipboardFormat clipboard_formats[] = {
>       {CF_UNICODETEXT, VD_AGENT_CLIPBOARD_UTF8_TEXT},
> -    {CF_DIB, VD_AGENT_CLIPBOARD_BITMAP},
>       {0, 0}};
>
>   static const unsigned long MODAL_LOOP_TIMER_ID = 1;
> @@ -912,9 +911,6 @@ bool Platform::on_clipboard_notify(uint32_t type, const uint8_t* data, int32_t s
>           clip_len++;
>           clip_size = clip_len * sizeof(WCHAR);
>           break;
> -    case VD_AGENT_CLIPBOARD_BITMAP:
> -        clip_size = size;
> -        break;
>       default:
>           LOG_INFO("Unsupported clipboard type %u", type);
>           return false;
> @@ -935,10 +931,6 @@ bool Platform::on_clipboard_notify(uint32_t type, const uint8_t* data, int32_t s
>           ret = !!MultiByteToWideChar(CP_UTF8, 0, (LPCSTR)data, size, (LPWSTR)clip_buf, clip_len);
>           ((LPWSTR)clip_buf)[clip_len - 1] = L'\0';
>           break;
> -    case VD_AGENT_CLIPBOARD_BITMAP:
> -        memcpy(clip_buf, data, size);
> -        ret = true;
> -        break;
>       }
>       GlobalUnlock(clip_data);
>       if (!ret) {
> @@ -990,15 +982,6 @@ bool Platform::on_clipboard_request(uint32_t type)
>           delete[] (uint8_t *)utf8_data;
>           break;
>       }
> -    case VD_AGENT_CLIPBOARD_BITMAP: {
> -        size_t clip_size = GlobalSize(clip_data);
> -        if (!clip_size) {
> -            break;
> -        }
> -        clipboard_listener->on_clipboard_notify(type, (uint8_t*)clip_buf, clip_size);
> -        ret = true;
> -        break;
> -    }
>       default:
>           LOG_INFO("Unsupported clipboard type %u", type);
>       }


More information about the Spice-devel mailing list