[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src time_display.cxx,1.9,1.10 time_displa
From: |
torangan |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src time_display.cxx,1.9,1.10 time_display.hxx,1.7,1.8 |
Date: |
24 Oct 2002 15:32:50 -0000 |
Update of /usr/local/cvsroot/Games/Pingus/src
In directory dark:/tmp/cvs-serv13703/src
Modified Files:
time_display.cxx time_display.hxx
Log Message:
applied infinity patch
Index: time_display.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/time_display.cxx,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- time_display.cxx 8 Oct 2002 18:18:21 -0000 1.9
+++ time_display.cxx 24 Oct 2002 15:32:48 -0000 1.10
@@ -29,6 +29,7 @@
#include "plf.hxx"
TimeDisplay::TimeDisplay ()
+ : infinity_symbol(PingusResource::load_surface("misc/infinity", "core"))
{
//font = PingusResource::load_font("Fonts/numbers","fonts");
font = PingusResource::load_font("Fonts/pingus_small","fonts");
@@ -42,7 +43,9 @@
if (server->get_plf()->get_time() == -1 && !(pingus_debug_flags &
PINGUS_DEBUG_GAMETIME))
{
- snprintf(time_string, 8, "00");
+ infinity_symbol.put_screen(CL_Display::get_width()
+ - infinity_symbol.get_width() - 6,
+ 2);
}
else
{
@@ -69,8 +72,9 @@
time_value = server->get_world()->get_time_passed();
snprintf(time_string, 8, "%4d", time_value);
}
+
+ font->print_right(CL_Display::get_width() - 5, 1, time_string);
}
- font->print_right(CL_Display::get_width() - 5, 1, time_string);
UNUSED_ARG(gc);
}
Index: time_display.hxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/time_display.hxx,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- time_display.hxx 27 Sep 2002 11:26:44 -0000 1.7
+++ time_display.hxx 24 Oct 2002 15:32:48 -0000 1.8
@@ -30,6 +30,7 @@
private:
Server* server;
CL_Font* font;
+ CL_Surface infinity_symbol;
public:
TimeDisplay();
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src time_display.cxx,1.9,1.10 time_display.hxx,1.7,1.8,
torangan <=