-/* xscreensaver, Copyright (c) 1992-2016 Jamie Zawinski <jwz@jwz.org>
+/* xscreensaver, Copyright (c) 1992-2017 Jamie Zawinski <jwz@jwz.org>
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
load_image_async CB
load_random_image_cocoa
- osx_grab_desktop_image (osxgrabscreen.m, MacOS version)
+ osx_grab_desktop_image (grabclient-osx.m, MacOS version)
copy_framebuffer_to_ximage
XPutImage
draw_colorbars
load_image_async CB
load_random_image_cocoa
- osx_grab_desktop_image (osxgrabscreen.m, iOS version)
+ osx_grab_desktop_image (grabclient-osx.m, iOS version)
CGWindowListCreateImage
jwxyz_draw_NSImage_or_CGImage
draw_colorbars
# else /* HAVE_COCOA && USE_IPHONE -- iOS */
/* Callback for ios_load_random_image(), called after we have loaded an
- image from the iOS device's Photo Library. See iosgrabimage.m.
+ image from the iOS device's Photo Library. See grabclient-ios.m.
*/
static void
ios_load_random_image_cb (void *uiimage, const char *filename,
(XtPointer) (XtInputReadMask | XtInputExceptMask),
xscreensaver_getimage_file_cb, (XtPointer) clo2);
# else /* USE_IPHONE */
- ios_load_random_image (ios_load_random_image_cb, clo2);
+ {
+ XWindowAttributes xgwa;
+ XGetWindowAttributes (DisplayOfScreen (screen), xwindow, &xgwa);
+ ios_load_random_image (ios_load_random_image_cb, clo2,
+ xgwa.width, xgwa.height);
+ }
# endif /* USE_IPHONE */
}