* 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:
Laurent Carlier 2010-06-05 20:39:57 +00:00
parent 3e92aaf056
commit b87e25b5ba

View file

@ -338,8 +338,6 @@ void SDLgfx::DrawLine(int x1, int y1, int x2, int y2)
SetContext(); SetContext();
glPushAttrib(GL_ALL_ATTRIB_BITS);
SetLinePattern(hLine); SetLinePattern(hLine);
glLineWidth(GLfloat(hLineWidth)); glLineWidth(GLfloat(hLineWidth));
@ -347,8 +345,6 @@ void SDLgfx::DrawLine(int x1, int y1, int x2, int y2)
glVertex2i(x1, y1); glVertex2i(x1, y1);
glVertex2i(x2, y2); glVertex2i(x2, y2);
glEnd(); glEnd();
glPopAttrib();
} }
void SDLgfx::DrawRect(int x, int y, int w, int h) 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(); SetContext();
glPushAttrib(GL_ALL_ATTRIB_BITS);
SetFillPattern(hFill); SetFillPattern(hFill);
glBegin(GL_QUADS); glBegin(GL_QUADS);
@ -382,8 +376,6 @@ void SDLgfx::DrawRect(int x, int y, int w, int h)
glVertex2i(x, y+h); glVertex2i(x, y+h);
glEnd(); glEnd();
} }
glPopAttrib();
} }
void SDLgfx::DrawEllipse(int x, int y, int w, int h) 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 angle;
double step = 2 * PI / 360; double step = 2 * PI / 360;
glPushAttrib(GL_ALL_ATTRIB_BITS);
glTranslatef(x, y, 0.0f); glTranslatef(x, y, 0.0f);
SetFillPattern(hFill); SetFillPattern(hFill);
@ -417,7 +408,6 @@ void SDLgfx::DrawEllipse(int x, int y, int w, int h)
} }
glLoadIdentity(); glLoadIdentity();
glPopAttrib();
} }
void SDLgfx::Blit(SDLsurface *surface, int x, int y, int srcX, int srcY, void SDLgfx::Blit(SDLsurface *surface, int x, int y, int srcX, int srcY,