[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] r2804 - branches/pingus_sdl/src
From: |
grumbel at BerliOS |
Subject: |
[Pingus-CVS] r2804 - branches/pingus_sdl/src |
Date: |
Sun, 5 Aug 2007 00:44:16 +0200 |
Author: grumbel
Date: 2007-08-05 00:44:15 +0200 (Sun, 05 Aug 2007)
New Revision: 2804
Modified:
branches/pingus_sdl/src/font_test_screen.cpp
Log:
- little change in where the reference letters are printed (patch from Plouj)
Modified: branches/pingus_sdl/src/font_test_screen.cpp
===================================================================
--- branches/pingus_sdl/src/font_test_screen.cpp 2007-08-04 22:39:41 UTC
(rev 2803)
+++ branches/pingus_sdl/src/font_test_screen.cpp 2007-08-04 22:44:15 UTC
(rev 2804)
@@ -62,17 +62,19 @@
for(int i = 0; i < 256; ++i)
{
- float x = 64.0f + (i%20)*(font.get_height() + 12);
- float y = 64.0f + (i/20)*(font.get_height() + 12);
+ float x = 64.0f + (i%20)*(font.get_height() + 24);
+ float y = 64.0f + (i/20)*(font.get_height() + reference.get_height()*3);
- gc.print_right(reference,
- x + font.get_height(), y,
+ // print the actual character
+ gc.print_left(reference,
+ x,
+ y - reference.get_height(),
std::string(1, char(i)));
-
- gc.print_right(reference,
- x + font.get_height(),
- y + font.get_height() - reference.get_height(),
- StringUtil::to_string(i));
+ // print the index number
+ gc.print_left(reference,
+ x,
+ y + font.get_height(),
+ StringUtil::to_string(i));
if (font.get_width(char(i)))
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] r2804 - branches/pingus_sdl/src,
grumbel at BerliOS <=