type and wrap it. This avoids the leak in that entry pre Imager 0.56.
RT #24992
Imager->_set_error(Imager->_error_as_msg());
return;
}
-
- return $result;
+
+ # RT #24992 - the Imager typemap entry is broken pre-0.56, so
+ # wrap it here
+ return bless { IMG => $result }, "Imager";
}
sub have_win32 {
#ifdef SS_WIN32
-Imager
+Imager::ImgRaw
imss_win32(hwnd, include_decor = 0, left = 0, top = 0, right = 0, bottom = 0)
unsigned hwnd
int include_decor
#ifdef SS_X11
-Imager
+Imager::ImgRaw
imss_x11(display, window_id, left = 0, top = 0, right = 0, bottom = 0)
unsigned long display
int window_id