Browse Source

Merge pull request #1 from daltomi/otraore

Minor fix TestHttp.h
Ousmane Traore 9 years ago
parent
commit
b06bf36c28
1 changed files with 9 additions and 9 deletions
  1. 9 9
      examples/Demo/src/TestHttp.h

+ 9 - 9
examples/Demo/src/TestHttp.h

@@ -13,19 +13,19 @@ public:
     TestHttp()
     TestHttp()
     {
     {
         //Testing http GET request
         //Testing http GET request
-        spWebImage image2 = new WebImage;
-        image2->load("http://oxygine.org/img/madewith.png");
-        image2->setSize(100, 100);
-        image2->setPosition(image1->getPosition() + Vector2(image1->getWidth() + 10, 0));
-        image2->attachTo(content);
-
-        //Testing http GET request with redirect
         spWebImage image1 = new WebImage;
         spWebImage image1 = new WebImage;
-        image1->load("http://graph.facebook.com/1373973107/picture?type=normal&return_ssl_resources=0");
+        image1->load("http://oxygine.org/img/madewith.png");
         image1->setSize(100, 100);
         image1->setSize(100, 100);
-        image1->setPosition(getStage()->getSize() / 2);
+        image1->setPosition(image1->getPosition() + Vector2(image1->getWidth() + 10, 0));
         image1->attachTo(content);
         image1->attachTo(content);
 
 
+        //Testing http GET request with redirect
+        spWebImage image2 = new WebImage;
+        image2->load("http://graph.facebook.com/1373973107/picture?type=normal&return_ssl_resources=0");
+        image2->setSize(100, 100);
+        image2->setPosition(getStage()->getSize() / 2);
+        image2->attachTo(content);
+
         //Testing loading a file in memory
         //Testing loading a file in memory
         spHttpRequestTask task = HttpRequestTask::create();
         spHttpRequestTask task = HttpRequestTask::create();
         task->setUrl("http://nist.time.gov/actualtime.cgi");
         task->setUrl("http://nist.time.gov/actualtime.cgi");