pingus-cvs
[Top][All Lists]
Advanced

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

[Pingus-CVS] CVS: Games/Pingus/src credits.cxx,1.21,1.22 story_screen.cx


From: grumbel
Subject: [Pingus-CVS] CVS: Games/Pingus/src credits.cxx,1.21,1.22 story_screen.cxx,1.15,1.16 system.cxx,1.11,1.12
Date: 10 Apr 2003 17:12:01 -0000

Update of /var/lib/cvs/Games/Pingus/src
In directory dark:/tmp/cvs-serv31805

Modified Files:
        credits.cxx story_screen.cxx system.cxx 
Log Message:
more 640x480 fixes, should be all now

Index: credits.cxx
===================================================================
RCS file: /var/lib/cvs/Games/Pingus/src/credits.cxx,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- credits.cxx 10 Apr 2003 16:59:57 -0000      1.21
+++ credits.cxx 10 Apr 2003 17:11:58 -0000      1.22
@@ -143,7 +143,7 @@
   credits.push_back(_("_Thank you for"));
   credits.push_back(_("_playing!"));
 
-  end_offset = -350; // screen height + grace time 
+  end_offset = -CL_Display::get_height()/2 - 50; // screen height + grace time 
   for (std::vector<std::string>::iterator i = credits.begin(); i != 
credits.end(); ++i)
     {
       switch ((*i)[0])

Index: story_screen.cxx
===================================================================
RCS file: /var/lib/cvs/Games/Pingus/src/story_screen.cxx,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- story_screen.cxx    10 Apr 2003 15:40:18 -0000      1.15
+++ story_screen.cxx    10 Apr 2003 17:11:58 -0000      1.16
@@ -68,7 +68,7 @@
   StoryScreenComponent* story_comp;
 public:
   StoryScreenContinueButton(StoryScreenComponent* arg_story_comp)
-    : GUI::SurfaceButton(620, 460, 
+    : GUI::SurfaceButton(CL_Display::get_width()/2 + 220, 
CL_Display::get_height()/2 + 160, 
                          ResDescriptor("misc/next", "core", 
ResDescriptor::RD_RESOURCE),
                          ResDescriptor("misc/next", "core", 
ResDescriptor::RD_RESOURCE),
                          ResDescriptor("misc/next_hover", "core", 
ResDescriptor::RD_RESOURCE)),
@@ -120,11 +120,19 @@
 void
 StoryScreenComponent::draw (GraphicContext& gc)
 {
-  gc.draw(background, 0, 0);
-  gc.print_center(Fonts::chalk_large, CL_Display::get_width()/2, 100, 
story.title);
-  gc.draw(page_surface,  gc.get_width()/2 - page_surface.get_width()/2,
-          160);
-  gc.print_left(Fonts::chalk_normal, 120, 335, display_text);
+  gc.draw(background,
+          gc.get_width()/2 - background.get_width()/2,
+          gc.get_height()/2 - background.get_height()/2);
+  
+  gc.print_center(Fonts::chalk_large, CL_Display::get_width()/2, 
+                  CL_Display::get_height()/2 - 200, story.title);
+  gc.draw(page_surface,  
+          gc.get_width()/2 - page_surface.get_width()/2,
+          gc.get_height()/2 - 140);
+  
+  gc.print_left(Fonts::chalk_normal, 
+                CL_Display::get_width()/2  - 280,
+                CL_Display::get_height()/2 + 35, display_text);
 }
 
 void

Index: system.cxx
===================================================================
RCS file: /var/lib/cvs/Games/Pingus/src/system.cxx,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- system.cxx  9 Apr 2003 21:57:24 -0000       1.11
+++ system.cxx  10 Apr 2003 17:11:58 -0000      1.12
@@ -251,7 +251,7 @@
 System::get_statdir()
 {
 #ifdef WIN32
-  return "stat\\";
+  return "stat/";
 #else /* !WIN32 */
   char* homedir = getenv("HOME");
 





reply via email to

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