mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-20 19:43:01 +00:00
On Win32, move the "bmp" format to the front. Means less conversion in
2005-04-04 Tor Lillqvist <tml@novell.com> * app/widgets/gimpclipboard.c (gimp_clipboard_format_compare): On Win32, move the "bmp" format to the front. Means less conversion in most cases, as other apps on Win32 typically provide/want the BMP format on the Clipboard. (Actually CF_DIB, but that's the same, just without the BMP file header.) See also bug #168173.
This commit is contained in:
parent
70accad825
commit
61ca231ce2
|
@ -1,3 +1,11 @@
|
|||
2005-04-04 Tor Lillqvist <tml@novell.com>
|
||||
|
||||
* app/widgets/gimpclipboard.c (gimp_clipboard_format_compare): On
|
||||
Win32, move the "bmp" format to the front. Means less conversion
|
||||
in most cases, as other apps on Win32 typically provide/want the
|
||||
BMP format on the Clipboard. (Actually CF_DIB, but that's the
|
||||
same, just without the BMP file header.) See also bug #168173.
|
||||
|
||||
2005-04-04 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* plug-ins/FractalExplorer/FractalExplorer.c: fixed typo that
|
||||
|
|
|
@ -498,6 +498,15 @@ gimp_clipboard_format_compare (GdkPixbufFormat *a,
|
|||
gchar *b_name = gdk_pixbuf_format_get_name (b);
|
||||
gint retval = 0;
|
||||
|
||||
#ifdef GDK_WINDOWING_WIN32
|
||||
/* move BMP to the front of the list */
|
||||
if (strcmp (a_name, "bmp") == 0)
|
||||
retval = -1;
|
||||
else if (strcmp (b_name, "bmp") == 0)
|
||||
retval = 1;
|
||||
else
|
||||
#endif
|
||||
|
||||
/* move PNG to the front of the list */
|
||||
if (strcmp (a_name, "png") == 0)
|
||||
retval = -1;
|
||||
|
|
Loading…
Reference in a new issue