const and indent
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1709 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
b29fad2da0
commit
8efecd07b2
|
@ -53,8 +53,8 @@ int pie_ClipTextured(int npoints, PIEVERTEX *points, PIEVERTEX *clip);
|
|||
BOOL pie_SetVideoBufferDepth(UDWORD depth);
|
||||
BOOL pie_SetVideoBufferWidth(UDWORD width);
|
||||
BOOL pie_SetVideoBufferHeight(UDWORD height);
|
||||
UDWORD pie_GetVideoBufferDepth( void );
|
||||
UDWORD pie_GetVideoBufferWidth( void );
|
||||
UDWORD pie_GetVideoBufferHeight( void );
|
||||
UDWORD pie_GetVideoBufferDepth( void ) WZ_DECL_PURE;
|
||||
UDWORD pie_GetVideoBufferWidth( void ) WZ_DECL_PURE;
|
||||
UDWORD pie_GetVideoBufferHeight( void ) WZ_DECL_PURE;
|
||||
|
||||
#endif // _pieclip_h
|
||||
|
|
|
@ -818,10 +818,10 @@ static void pie_DrawShadows(void)
|
|||
glLoadIdentity();
|
||||
glDisable(GL_DEPTH_TEST);
|
||||
glBegin(GL_TRIANGLE_STRIP);
|
||||
glVertex2f(0, 0);
|
||||
glVertex2f(width, 0);
|
||||
glVertex2f(0, height);
|
||||
glVertex2f(width, height);
|
||||
glVertex2f(0, 0);
|
||||
glVertex2f(width, 0);
|
||||
glVertex2f(0, height);
|
||||
glVertex2f(width, height);
|
||||
glEnd();
|
||||
pie_PerspectiveBegin();
|
||||
|
||||
|
|
|
@ -430,10 +430,10 @@ Sint32 pie_RotateProject(Vector3i *v3d, Vector2i *v2d)
|
|||
//*************************************************************************
|
||||
|
||||
void pie_PerspectiveBegin(void) {
|
||||
float width = pie_GetVideoBufferWidth();
|
||||
float height = pie_GetVideoBufferHeight();
|
||||
float xangle = width/6;
|
||||
float yangle = height/6;
|
||||
const float width = pie_GetVideoBufferWidth();
|
||||
const float height = pie_GetVideoBufferHeight();
|
||||
const float xangle = width/6;
|
||||
const float yangle = height/6;
|
||||
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
glLoadIdentity();
|
||||
|
|
Loading…
Reference in New Issue