/[enigma]/enigma/src/display.cc
ViewVC logotype

Diff of /enigma/src/display.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.27 by dheck, Tue Jun 17 09:30:44 2003 UTC revision 1.28 by dheck, Thu Jun 19 22:23:30 2003 UTC
# Line 1289  Follower_Scrolling::tick(double dtime, c Line 1289  Follower_Scrolling::tick(double dtime, c
1289                                        scrollpos[1] + gamearea.h/tileh/2);                                        scrollpos[1] + gamearea.h/tileh/2);
1290          destpos[0] = int(destpos[0]*tilew)/tilew;          destpos[0] = int(destpos[0]*tilew)/tilew;
1291          destpos[1] = int(destpos[1]*tileh)/tileh;          destpos[1] = int(destpos[1]*tileh)/tileh;
1292          destpos[0] = max(0, min((int) destpos[0],          destpos[0] = Clamp ((int)destpos[0], 0, engine->get_width()-gamearea.w/tilew);
1293                                  engine->get_width()-gamearea.w/tilew));          destpos[1] = Clamp ((int)destpos[1], 0, engine->get_height()-gamearea.h/tileh);
         destpos[1] = max(0, min((int) destpos[1],  
                                 engine->get_height()-gamearea.h/tileh));  
1294          if (!scrollx_p)          if (!scrollx_p)
1295              destpos[0] = olddest[0]; //ScrollX;              destpos[0] = olddest[0]; //ScrollX;
1296          if (!scrolly_p)          if (!scrolly_p)

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26