diff tests/core_tests/test_gui++.cpp @ 38:38232a42ff8d

Updated tests (loadResource instead of load). Added static fife-project to Unittest-Solution for VS9.
author aldart@33b003aa-7bff-0310-803a-e67f0ece8222
date Sat, 12 Jul 2008 12:30:31 +0000
parents 4a0efb7baf70
children 4c8334b0ab30
line wrap: on
line diff
--- a/tests/core_tests/test_gui++.cpp	Sat Jul 12 12:00:57 2008 +0000
+++ b/tests/core_tests/test_gui++.cpp	Sat Jul 12 12:30:31 2008 +0000
@@ -29,7 +29,6 @@
 #include <boost/shared_ptr.hpp>
 #include <SDL.h>
 #include <guichan.hpp>
-#include "../../ext/UnitTest++/src/UnitTest++.h"
 
 #include "vfs/vfs.h"
 #include "util/structures/rect.h"
@@ -90,7 +89,7 @@
 		top->add(icon, 10, 30);
 
 		ImageLoader provider(vfs.get());
-		boost::scoped_ptr<Image> img(provider.load(ImageLocation(IMAGE_FILE)));
+		boost::scoped_ptr<Image> img(dynamic_cast<Image*>(provider.loadResource(ImageLocation(IMAGE_FILE))));
 
 		int h = img->getHeight();
 		int w = img->getWidth();