X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fgrab-ximage.h;h=e892139615eda8f6eb565dae5b2bd09a0744e0a8;hp=ba0e69949579d21ff813c3d1cf3027c923b96a41;hb=ffd8c0873576a9e3065696a624dce6b766b77062;hpb=40eacb5812ef7c0e3374fb139afbb4f5bc8bbfb5 diff --git a/hacks/glx/grab-ximage.h b/hacks/glx/grab-ximage.h index ba0e6994..e8921396 100644 --- a/hacks/glx/grab-ximage.h +++ b/hacks/glx/grab-ximage.h @@ -1,5 +1,5 @@ /* grab-ximage.c --- grab the screen to an XImage for use with OpenGL. - * xscreensaver, Copyright (c) 2001, 2003 Jamie Zawinski + * xscreensaver, Copyright (c) 2001, 2003, 2004 Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -18,6 +18,17 @@ This XImage will be 32 bits per pixel, 8 each per R, G, and B, with the extra byte set to 0xFF. */ -XImage * screen_to_ximage (Screen *screen, Window window); +XImage * screen_to_ximage (Screen *screen, Window window, + char **filename_return); + +/* Like the above, but loads the image in the background and runs the + given callback once it has been loaded. + */ +void fork_screen_to_ximage (Screen *screen, Window window, + void (*callback) (Screen *, Window, XImage *, + const char *filename, + void *closure, + double cvt_time), + void *closure); #endif /* __GRAB_XIMAGE_H__ */