TAChart: Fix compilation of TADrawerOpenGL on non-windows platforms.

Apparently, GLUT defines font symbols as constants on Windows, but as variables elsewhere.

git-svn-id: trunk@29996 -
This commit is contained in:
ask 2011-03-23 09:55:13 +00:00
parent dd8e84b315
commit 7d6bbcd63e

View File

@ -290,7 +290,6 @@ end;
procedure TOpenGLDrawer.SimpleTextOut(AX, AY: Integer; const AText: String);
const
GL_FONT = GLUT_BITMAP_8_BY_13;
X_OFFSET = 0;
Y_OFFSET = 10;
var
@ -299,7 +298,7 @@ begin
ChartGLColor(FFontColor);
glRasterPos2i(AX + X_OFFSET, AY + Y_OFFSET);
for i := 1 to Length(AText) do
glutBitmapCharacter(GL_FONT, Ord(AText[i]));
glutBitmapCharacter(GLUT_BITMAP_8_BY_13, Ord(AText[i]));
end;
end.