Enlightenment CVS committal
Author : kwo
Project : e17
Module : libs/imlib2
Dir : e17/libs/imlib2/src
Modified Files:
api.c
Log Message:
Fix imlib_create_scaled_image_from_drawable().
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/imlib2/src/api.c,v
retrieving revision 1.101
retrieving revision 1.102
diff -u -3 -r1.101 -r1.102
--- api.c 7 Jul 2004 00:32:35 -0000 1.101
+++ api.c 23 Sep 2004 20:42:18 -0000 1.102
@@ -2247,26 +2247,26 @@
{
xx = (source_width * x) / destination_width;
XCopyArea(ctx->display, ctx->drawable, p, gc, source_x + xx, 0, 1,
- source_height, xx, 0);
+ source_height, x, 0);
if (m != None)
- XCopyArea(ctx->display, mask, m, mgc, xx, 0, 1, source_height, xx,
+ XCopyArea(ctx->display, mask, m, mgc, xx, 0, 1, source_height, x,
0);
}
for (x = 0; x < destination_height; x++)
{
xx = (source_height * x) / destination_height;
- XCopyArea(ctx->display, ctx->drawable, p, gc, 0, source_y + xx,
- destination_width, 1, 0, xx);
+ XCopyArea(ctx->display, p, p, gc, 0, source_y + xx,
+ destination_width, 1, 0, x);
if (m != None)
- XCopyArea(ctx->display, mask, m, mgc, 0, source_y + xx,
- destination_width, 1, 0, xx);
+ XCopyArea(ctx->display, m, m, mgc, 0, source_y + xx,
+ destination_width, 1, 0, x);
}
im = __imlib_CreateImage(destination_width, destination_height, NULL);
im->data = malloc(destination_width * destination_height * sizeof(DATA32));
__imlib_GrabDrawableToRGBA(im->data, 0, 0, destination_width,
- destination_height, ctx->display, p, m,
+ source_height, ctx->display, p, m,
ctx->visual, ctx->colormap, ctx->depth, 0, 0,
- source_width, source_height, domask,
+ destination_width, destination_height, domask,
need_to_grab_x);
XFreePixmap(ctx->display, p);
if (m != None)
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs