From 63445557bcfb3fa3a3c94b549100a8db56672d26 Mon Sep 17 00:00:00 2001 From: John Abraham Date: Sun, 12 Jan 2014 18:43:41 -0800 Subject: [PATCH] NetAnim: Demo example must use absolute path --- src/netanim/examples/resources_demo.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/netanim/examples/resources_demo.cc b/src/netanim/examples/resources_demo.cc index 3d90d8298..a23ffe21e 100644 --- a/src/netanim/examples/resources_demo.cc +++ b/src/netanim/examples/resources_demo.cc @@ -169,9 +169,9 @@ int main (int argc, char *argv[]) // Create the animation object and configure for specified output pAnim = new AnimationInterface (animFile, true); // true --> Enable 3.105 behavior // Provide the absolute path to the resource - resourceId1 = pAnim->AddResource ("./ns-3-logo1.png"); - resourceId2 = pAnim->AddResource ("./ns-3-logo2.png"); - pAnim->SetBackgroundImage ("./ns-3-background.png", 0, 0, 0.2, 0.2, 0.1); + resourceId1 = pAnim->AddResource ("/Users/john/ns3/netanim-3.105/ns-3-logo1.png"); + resourceId2 = pAnim->AddResource ("/Users/john/ns3/netanim-3.105/ns-3-logo2.png"); + pAnim->SetBackgroundImage ("/Users/john/ns3/netanim-3.105/ns-3-background.png", 0, 0, 0.2, 0.2, 0.1); Simulator::Schedule (Seconds (0.1), modify); // Set up the acutal simulation