somehow fixed screenblocks location

This commit is contained in:
Vincent Hamm 2003-08-31 13:20:28 +00:00
parent a1324f2009
commit 9517179671
3 changed files with 138 additions and 54 deletions

View file

@ -87,6 +87,10 @@ void screenBlocksAddRectangle( int top, int right, int left, int bottom, float d
{
// clip the rectange to the screen size
int tempHeight = bottom-top;
top = 480-bottom;
bottom = top + tempHeight;
if(top<0)
top = 0;
if(top>=SCREEN_HEIGHT)
@ -127,6 +131,10 @@ void screenBlocksAddRectangle( int top, int right, int left, int bottom, float d
if((bottom - top)%16)
height++;
// temp hack
width++;
height++;
int i;
int j;