somehow fixed screenblocks location
This commit is contained in:
parent
a1324f2009
commit
9517179671
3 changed files with 138 additions and 54 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue