[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src view.cxx,1.11,1.12
From: |
grumbel |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src view.cxx,1.11,1.12 |
Date: |
17 Sep 2002 22:52:38 -0000 |
Update of /usr/local/cvsroot/Games/Pingus/src
In directory dark:/tmp/cvs-serv10453
Modified Files:
view.cxx
Log Message:
- fixed off-by-one bug in the View
- fixed position bug in the surface background
Index: view.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/view.cxx,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- view.cxx 14 Sep 2002 19:06:33 -0000 1.11
+++ view.cxx 17 Sep 2002 22:52:36 -0000 1.12
@@ -58,14 +58,6 @@
{
assert(world);
- // FIXME: CL_Display::push_clip_rect();
- // FIXME: CL_Display::set_clip_rect(clip_rect);
-
- // Drawing the world
- /*world->draw(x1_pos, y1_pos,
- x2_pos - x1_pos + 1, y2_pos - y1_pos + 1,
- x_offset, y_offset, size);*/
-
// Update the scroll position
//display_gc.set_zoom (2.0f);
display_gc.set_offset (x_offset - (x2_pos - x1_pos)/2,
@@ -170,8 +162,8 @@
View::make_range()
{
// Bug: this works not very good
- x_offset.set_range(0, (int)(x2_pos - x1_pos - (world->get_width() * size)));
- y_offset.set_range(0, (int)(y2_pos - y1_pos - (world->get_height() * size)));
+ x_offset.set_range(0, (int)((x2_pos - x1_pos + 1) - (world->get_width() *
size)));
+ y_offset.set_range(0, (int)((y2_pos - y1_pos + 1) - (world->get_height() *
size)));
}
double
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src view.cxx,1.11,1.12,
grumbel <=