]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/imagpnm.cpp
Choose a legal default font on DC creation.
[wxWidgets.git] / src / common / imagpnm.cpp
index a7775d2a29662d16404a5c2ad5ad4dcf7fc44915..aaa30aec58a52af69307b3d94161e6ea0fffa5e4 100644 (file)
@@ -7,10 +7,6 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma implementation "imagpnm.h"
-#endif
-
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
@@ -172,10 +168,12 @@ bool wxPNMHandler::DoCanRead( wxInputStream& stream )
 
     if ( stream.GetC() == 'P' )
     {
-        switch (stream.GetC())
+        switch ( stream.GetC() )
         {
-            case '3':
-            case '6':
+            case '2': // ASCII Grey
+            case '3': // ASCII RGB
+            case '5': // RAW Grey
+            case '6': // RAW RGB
                 return true;
         }
     }