]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/imaggif.cpp
Added new wxFontDialog,
[wxWidgets.git] / src / common / imaggif.cpp
index 785f91da5481f2d0a7921b7282586e11c9c713c7..c6a775e15cde7d2294bc697557870c731bd1c595 100644 (file)
@@ -66,4 +66,13 @@ bool wxGIFHandler::SaveFile( wxImage * WXUNUSED(image),
     return FALSE;
 }
 
+bool wxGIFHandler::CanRead( wxInputStream& stream )
+{
+    unsigned char hdr[5];
+    
+    stream.Read(&hdr, 5);
+    stream.SeekI(-5, wxFromCurrent);
+    return (hdr[0] == 'G' && hdr[1] == 'I' && hdr[2] == 'F' && hdr[3] == '8' && hdr[4] == '9');
+}
+
 #endif