[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] r2856 - branches/pingus_sdl/src
From: |
grumbel at BerliOS |
Subject: |
[Pingus-CVS] r2856 - branches/pingus_sdl/src |
Date: |
Sun, 12 Aug 2007 16:00:38 +0200 |
Author: grumbel
Date: 2007-08-12 16:00:37 +0200 (Sun, 12 Aug 2007)
New Revision: 2856
Modified:
branches/pingus_sdl/src/client.cpp
Log:
fixed off-by-one issue
Modified: branches/pingus_sdl/src/client.cpp
===================================================================
--- branches/pingus_sdl/src/client.cpp 2007-08-12 13:24:27 UTC (rev 2855)
+++ branches/pingus_sdl/src/client.cpp 2007-08-12 14:00:37 UTC (rev 2856)
@@ -91,18 +91,19 @@
Rect rect = playfield->get_rect();
if (rect != Rect(Vector2i(0,0), Size(Display::get_width(),
Display::get_height())))
{
+ Color border_color(50, 65, 75);
// top
- gc.draw_fillrect(0, 0, Display::get_width()-1, rect.top,
- Color(0,0,0));
+ gc.draw_fillrect(0, 0, Display::get_width(), rect.top,
+ border_color);
// bottom
- gc.draw_fillrect(0, rect.bottom, Display::get_width()-1,
Display::get_height()-1,
- Color(0,0,0));
+ gc.draw_fillrect(0, rect.bottom, Display::get_width(),
Display::get_height(),
+ border_color);
// left
gc.draw_fillrect(0, rect.top, rect.left, rect.bottom,
- Color(0,0,0));
+ border_color);
// right
- gc.draw_fillrect(rect.right, rect.top, Display::get_width()-1, rect.bottom,
- Color(0,0,0));
+ gc.draw_fillrect(rect.right, rect.top, Display::get_width(), rect.bottom,
+ border_color);
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] r2856 - branches/pingus_sdl/src,
grumbel at BerliOS <=