]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/artstd.cpp
get the path in windows format for cygwin
[wxWidgets.git] / src / common / artstd.cpp
index a96e970d22b1bf02278466dbfb5551b517df5ec8..dd3f13c1a63534df95942feb1e3bc198a052cdf5 100644 (file)
@@ -201,6 +201,7 @@ wxBitmap wxDefaultArtProvider::CreateBitmap(const wxArtID& id,
 {
     wxBitmap bmp = wxDefaultArtProvider_CreateBitmap(id);
 
+#if wxUSE_IMAGE
     if (bmp.Ok())
     {
         // fit into transparent image with desired size hint from the client
@@ -219,9 +220,11 @@ wxBitmap wxDefaultArtProvider::CreateBitmap(const wxArtID& id,
                     wxImage img = bmp.ConvertToImage();
                     img.Resize(bestSize, offset);
                     bmp = wxBitmap(img);
-                }        
+                }
             }
-        }      
+        }
     }
+#endif // wxUSE_IMAGE
+
     return bmp;
 }