mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-31 09:40:28 +02:00
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:
parent
dd8e84b315
commit
7d6bbcd63e
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user