fix draw_image docs
@@ -786,7 +786,7 @@ pub unsafe fn draw_rgb_nocopy<T: WidgetBase>(wid: &mut T, fb: &[u8]) {
}
/// Draw an image into a widget
-/// Requires a call to app::set_visual(Mode::Rgb).unwrap()
+/// Requires a call to app::set_visual(Mode::Rgb8).unwrap()
pub fn draw_image(data: &[u8], x: i32, y: i32, w: i32, h: i32, depth: u32) -> Result<(), FltkError> {
if depth > 4 {
return Err(FltkError::Internal(FltkErrorKind::ImageFormatError));
