From cb8a32116eb08c65bb7634c41b28414d170a192d Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Fri, 19 Jun 2009 13:46:57 -0500 Subject: [PATCH] winex11.drv: link the windows PNG format to the X image/png format --- dlls/winex11.drv/clipboard.c | 2 ++ dlls/winex11.drv/x11drv.h | 1 + dlls/winex11.drv/x11drv_main.c | 1 + 3 files changed, 4 insertions(+), 0 deletions(-) diff --git a/dlls/winex11.drv/clipboard.c b/dlls/winex11.drv/clipboard.c index b634451..22445d7 100644 --- a/dlls/winex11.drv/clipboard.c +++ b/dlls/winex11.drv/clipboard.c @@ -293,6 +293,7 @@ static WINE_CLIPFORMAT ClipFormats[] = /* Maps X properties to Windows formats */ static const WCHAR wszRichTextFormat[] = {'R','i','c','h',' ','T','e','x','t',' ','F','o','r','m','a','t',0}; static const WCHAR wszGIF[] = {'G','I','F',0}; +static const WCHAR wszPNG[] = {'P','N','G',0}; static const WCHAR wszHTMLFormat[] = {'H','T','M','L',' ','F','o','r','m','a','t',0}; static const struct { @@ -303,6 +304,7 @@ static const struct { wszRichTextFormat, XATOM_text_rtf }, { wszRichTextFormat, XATOM_text_richtext }, { wszGIF, XATOM_image_gif }, + { wszPNG, XATOM_image_png }, { wszHTMLFormat, XATOM_text_html }, }; diff --git a/dlls/winex11.drv/x11drv.h b/dlls/winex11.drv/x11drv.h index b11e6a1..03d7307 100644 --- a/dlls/winex11.drv/x11drv.h +++ b/dlls/winex11.drv/x11drv.h @@ -635,6 +635,7 @@ enum x11drv_atoms XATOM_XdndTypeList, XATOM_WCF_DIB, XATOM_image_gif, + XATOM_image_png, XATOM_text_html, XATOM_text_plain, XATOM_text_rtf, diff --git a/dlls/winex11.drv/x11drv_main.c b/dlls/winex11.drv/x11drv_main.c index 41c866c..924dc66 100644 --- a/dlls/winex11.drv/x11drv_main.c +++ b/dlls/winex11.drv/x11drv_main.c @@ -172,6 +172,7 @@ static const char * const atom_names[NB_XATOMS - FIRST_XATOM] = "XdndTypeList", "WCF_DIB", "image/gif", + "image/png", "text/html", "text/plain", "text/rtf", -- 1.5.4.3