mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-18 17:30:10 +00:00
9b462c6024
configure.in: Fixed GIF check. Actually works now! src/gdk-pixbuf.c: More scaling work.
54 lines
806 B
C
54 lines
806 B
C
/*
|
|
* gdk-pixbuf.c: Resource management.
|
|
*
|
|
* Author:
|
|
* Miguel de Icaza (miguel@gnu.org)
|
|
*/
|
|
#include <config.h>
|
|
#include <glib.h>
|
|
#include "gdk-pixbuf.h"
|
|
|
|
|
|
static void
|
|
gdk_pixbuf_destroy (GdkPixBuf *pixbuf)
|
|
{
|
|
art_pixbuf_free (pixbuf->art_pixbuf);
|
|
g_free (pixbuf);
|
|
}
|
|
|
|
void
|
|
gdk_pixbuf_ref (GdkPixBuf *pixbuf)
|
|
{
|
|
g_return_if_fail (pixbuf != NULL);
|
|
|
|
pixbuf->ref_count++;
|
|
}
|
|
|
|
void
|
|
gdk_pixbuf_unref (GdkPixBuf *pixbuf)
|
|
{
|
|
g_return_if_fail (pixbuf != NULL);
|
|
g_return_if_fail (pixbuf->ref_count == 0);
|
|
|
|
pixbuf->ref_count--;
|
|
if (pixbuf->ref_count)
|
|
gdk_pixbuf_destroy (pixbuf);
|
|
}
|
|
|
|
GdkPixBuf *
|
|
gdk_pixbuf_scale (GdkPixBuf *pixbuf, gint w, gint h)
|
|
{
|
|
GdkPixBuf *spb;
|
|
double affine[6];
|
|
|
|
}
|
|
|
|
|
|
/*
|
|
* Local variables:
|
|
* c-basic-offset: 4
|
|
* c-file-offsets: ((substatement-open . 0))
|
|
* End:
|
|
*/
|
|
|