[GB.SDL]
* BUG: Remove buggy code, now interlacing line and image drawing work. git-svn-id: svn://localhost/gambas/trunk@2994 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
parent
3e92aaf056
commit
b87e25b5ba
1 changed files with 0 additions and 10 deletions
|
@ -338,8 +338,6 @@ void SDLgfx::DrawLine(int x1, int y1, int x2, int y2)
|
|||
|
||||
SetContext();
|
||||
|
||||
glPushAttrib(GL_ALL_ATTRIB_BITS);
|
||||
|
||||
SetLinePattern(hLine);
|
||||
glLineWidth(GLfloat(hLineWidth));
|
||||
|
||||
|
@ -347,8 +345,6 @@ void SDLgfx::DrawLine(int x1, int y1, int x2, int y2)
|
|||
glVertex2i(x1, y1);
|
||||
glVertex2i(x2, y2);
|
||||
glEnd();
|
||||
|
||||
glPopAttrib();
|
||||
}
|
||||
|
||||
void SDLgfx::DrawRect(int x, int y, int w, int h)
|
||||
|
@ -358,8 +354,6 @@ void SDLgfx::DrawRect(int x, int y, int w, int h)
|
|||
|
||||
SetContext();
|
||||
|
||||
glPushAttrib(GL_ALL_ATTRIB_BITS);
|
||||
|
||||
SetFillPattern(hFill);
|
||||
|
||||
glBegin(GL_QUADS);
|
||||
|
@ -382,8 +376,6 @@ void SDLgfx::DrawRect(int x, int y, int w, int h)
|
|||
glVertex2i(x, y+h);
|
||||
glEnd();
|
||||
}
|
||||
|
||||
glPopAttrib();
|
||||
}
|
||||
|
||||
void SDLgfx::DrawEllipse(int x, int y, int w, int h)
|
||||
|
@ -396,7 +388,6 @@ void SDLgfx::DrawEllipse(int x, int y, int w, int h)
|
|||
double angle;
|
||||
double step = 2 * PI / 360;
|
||||
|
||||
glPushAttrib(GL_ALL_ATTRIB_BITS);
|
||||
glTranslatef(x, y, 0.0f);
|
||||
SetFillPattern(hFill);
|
||||
|
||||
|
@ -417,7 +408,6 @@ void SDLgfx::DrawEllipse(int x, int y, int w, int h)
|
|||
}
|
||||
|
||||
glLoadIdentity();
|
||||
glPopAttrib();
|
||||
}
|
||||
|
||||
void SDLgfx::Blit(SDLsurface *surface, int x, int y, int srcX, int srcY,
|
||||
|
|
Loading…
Reference in a new issue