After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 348493 - _gdk_quartz_copy_to_image needs implementing for pixmaps
_gdk_quartz_copy_to_image needs implementing for pixmaps
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: Quartz
unspecified
Other Mac OS
: Normal normal
: ---
Assigned To: gtk-quartz maintainers
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2006-07-24 11:45 UTC by Richard Hult
Modified: 2007-08-30 08:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Implementation of the missing function (1.73 KB, patch)
2006-07-24 11:48 UTC, Richard Hult
none Details | Review
Another try for pixmap to image copy (2.46 KB, patch)
2007-07-22 20:53 UTC, Stefan Gehn
none Details | Review

Description Richard Hult 2006-07-24 11:45:48 UTC
The function _gdk_quartz_copy_to_image needs implementing. Will attach an initial patch from Malik NakaMura.
Comment 1 Richard Hult 2006-07-24 11:48:23 UTC
Created attachment 69487 [details] [review]
Implementation of the missing function
Comment 2 Ross Burton 2006-07-24 12:22:54 UTC
I have no say in the Quartz backend, but allocating a 4-byte array on the heap for every pixel in the image is not a great idea.
Comment 3 Malik NakaMura 2006-07-25 10:33:45 UTC
@Ross Burton : yes you're right, it is an error. I didnt fix it but the performance will be better
Comment 4 Richard Hult 2006-07-25 10:45:59 UTC
Another issue is that it only works for pixmaps, not windows (the drawable can be both).
Comment 5 Richard Hult 2007-05-25 19:47:55 UTC
I've committed the other part of this, copying from a window. The pixmap part still needs to be implemented.
Comment 6 Stefan Gehn 2007-07-22 20:53:23 UTC
Created attachment 92175 [details] [review]
Another try for pixmap to image copy

At least the 24 bit case does work (tested with GKrellM).
The other two cases are based on what I read in gdk_pixmap_new() in gdkpixmap-quarz.c.
Comment 7 Richard Hult 2007-07-31 15:58:31 UTC
Thanks, looks nice. I assume you mean image->depth, the pixmap doesn't have that field so it doesn't build.

II was looking to build gkrellm to test the patch on ppc too, but I can't seem to build it without X. Is there a patched version I can try?

Comment 8 Richard Hult 2007-08-30 08:00:20 UTC
Thanks, commited with the above mentioned fix (image->depth).