Changed the functions to return GdkPixBuf* instead of ArtPixBuf*.
This commit is contained in:
@ -11,6 +11,9 @@
|
|||||||
* src/gdk-pixbuf-drawable.c: Added #include "gdk-pixbuf-drawable.h"
|
* src/gdk-pixbuf-drawable.c: Added #include "gdk-pixbuf-drawable.h"
|
||||||
to fix compilation.
|
to fix compilation.
|
||||||
|
|
||||||
|
* src/gdk-pixbuf-drawable.[ch]: Changed functions to return
|
||||||
|
GdkPixBuf* instead of ArtPixBuf*.
|
||||||
|
|
||||||
1999-09-22 Michael Meeks <michael@nuclecu.unam.mx>
|
1999-09-22 Michael Meeks <michael@nuclecu.unam.mx>
|
||||||
|
|
||||||
* src/gdk-pixbuf.c (gdk_pixbuf_new): created.
|
* src/gdk-pixbuf.c (gdk_pixbuf_new): created.
|
||||||
|
|||||||
@ -1,12 +1,14 @@
|
|||||||
#ifndef _GDK_PIXBUF_DRAWABLE_H_
|
#ifndef _GDK_PIXBUF_DRAWABLE_H_
|
||||||
#define _GDK_PIXBUF_DRAWABLE_H_
|
#define _GDK_PIXBUF_DRAWABLE_H_
|
||||||
|
|
||||||
#include <gdk/gdk.h>
|
#include <gdk/gdk.h>
|
||||||
#include <gdk-pixbuf.h>
|
#include <gdk-pixbuf.h>
|
||||||
|
|
||||||
ArtPixBuf *art_pixbuf_rgb_from_drawable (GdkWindow *window,
|
GdkPixBuf *gdk_pixbuf_rgb_from_drawable (GdkWindow *window,
|
||||||
gint x, gint y,
|
gint x, gint y,
|
||||||
gint width, gint height);
|
gint width, gint height);
|
||||||
ArtPixBuf *art_pixbuf_rgba_from_drawable (GdkWindow *window,
|
GdkPixBuf *gdk_pixbuf_rgba_from_drawable (GdkWindow *window,
|
||||||
gint x, gint y,
|
gint x, gint y,
|
||||||
gint width, gint height);
|
gint width, gint height);
|
||||||
#endif
|
|
||||||
|
#endif /* _GDK_PIXBUF_DRAWABLE_H_ */
|
||||||
|
|||||||
@ -14,8 +14,8 @@
|
|||||||
|
|
||||||
/* private function */
|
/* private function */
|
||||||
|
|
||||||
static ArtPixBuf *
|
static GdkPixBuf *
|
||||||
art_pixbuf_from_drawable_core (GdkWindow *window,
|
gdk_pixbuf_from_drawable_core (GdkWindow *window,
|
||||||
gint x, gint y,
|
gint x, gint y,
|
||||||
gint width, gint height,
|
gint width, gint height,
|
||||||
gint with_alpha)
|
gint with_alpha)
|
||||||
@ -113,24 +113,26 @@ art_pixbuf_from_drawable_core (GdkWindow *window,
|
|||||||
g_error ("art_pixbuf_from_drawable_core (): Unknown depth.");
|
g_error ("art_pixbuf_from_drawable_core (): Unknown depth.");
|
||||||
}
|
}
|
||||||
|
|
||||||
return with_alpha ? art_pixbuf_new_rgba (buff, width, height, rowstride) :
|
art_pixbuf = with_alpha ? art_pixbuf_new_rgba (buff, width, height, rowstride) :
|
||||||
art_pixbuf_new_rgb (buff, width, height, rowstride);
|
art_pixbuf_new_rgb (buff, width, height, rowstride);
|
||||||
|
|
||||||
|
return gdk_pixbuf_new(art_pixbuf, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Public functions */
|
/* Public functions */
|
||||||
|
|
||||||
ArtPixBuf *
|
GdkPixBuf *
|
||||||
art_pixbuf_rgb_from_drawable (GdkWindow *window,
|
gdk_pixbuf_rgb_from_drawable (GdkWindow *window,
|
||||||
gint x, gint y,
|
gint x, gint y,
|
||||||
gint width, gint height)
|
gint width, gint height)
|
||||||
{
|
{
|
||||||
return art_pixbuf_from_drawable_core (window, x, y, width, height, 0);
|
return gdk_pixbuf_from_drawable_core (window, x, y, width, height, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
ArtPixBuf *
|
GdkPixBuf *
|
||||||
art_pixbuf_rgba_from_drawable (GdkWindow *window,
|
gdk_pixbuf_rgba_from_drawable (GdkWindow *window,
|
||||||
gint x, gint y,
|
gint x, gint y,
|
||||||
gint width, gint height)
|
gint width, gint height)
|
||||||
{
|
{
|
||||||
return art_pixbuf_from_drawable_core (window, x, y, width, height, 1);
|
return gdk_pixbuf_from_drawable_core (window, x, y, width, height, 1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user