pingus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-CVS] [pingus] push by address@hidden - Updated test and extra to


From: pingus
Subject: [Pingus-CVS] [pingus] push by address@hidden - Updated test and extra to make it compilable again after changes to sr... on 2011-10-19 22:59 GMT
Date: Wed, 19 Oct 2011 23:00:19 +0000

Revision: 4b949ce8e997
Author:   Ingo Ruhnke <address@hidden>
Date:     Wed Oct 19 15:59:49 2011
Log: Updated test and extra to make it compilable again after changes to src/

http://code.google.com/p/pingus/source/detail?r=4b949ce8e997

Modified:
 /extra/pingus-level-resave.cpp
 /extra/sprite-view.cpp

=======================================
--- /extra/pingus-level-resave.cpp      Tue Oct  4 05:09:50 2011
+++ /extra/pingus-level-resave.cpp      Wed Oct 19 15:59:49 2011
@@ -27,11 +27,11 @@
     {
std::cout << "Processing: " << argv[i] << " " << i << "/" << (argc-1) << std::endl;
       Pathname filename(argv[i], Pathname::SYSTEM_PATH);
-      Editor::EditorLevel level;
+
       std::cout << "Loading: " << filename.str() << std::endl;
-      level.load_level(filename);
+ std::unique_ptr<Editor::EditorLevel> level = Editor::EditorLevel::from_level_file(filename);
       std::cout << "Saving:  " << argv[i] << std::endl;
-      level.save_level(argv[i]);
+      level->save_level(argv[i]);
     }
     catch(const std::exception& err)
     {
=======================================
--- /extra/sprite-view.cpp      Tue Oct  4 05:09:50 2011
+++ /extra/sprite-view.cpp      Wed Oct 19 15:59:49 2011
@@ -31,10 +31,10 @@

   while(true)
   {
- Display::get_framebuffer().fill_rect(Rect(0, 0, 800, 600), Color(155, 0, 155)); + Display::get_framebuffer()->fill_rect(Rect(0, 0, 800, 600), Color(155, 0, 155));
     for(auto it = sprites.begin(); it != sprites.end(); ++it)
     {
- (*it).render(400 - (*it).get_width()/2, 300 - (*it).get_height()/2, Display::get_framebuffer()); + (*it).render(400 - (*it).get_width()/2, 300 - (*it).get_height()/2, *Display::get_framebuffer());
       (*it).update();
     }
     Display::flip_display();



reply via email to

[Prev in Thread] Current Thread [Next in Thread]