summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e4b651a)
raw | patch | inline | side by side (parent: e4b651a)
author | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Thu, 28 Sep 2017 19:01:32 +0000 (22:01 +0300) | ||
committer | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Thu, 28 Sep 2017 19:01:41 +0000 (22:01 +0300) |
src/gx/glgfx.pas | patch | blob | history |
diff --git a/src/gx/glgfx.pas b/src/gx/glgfx.pas
index fc3cc77fbb870e7cf143fa070db28cd74ad0ee3d..1237550cc98d8b425a42f041810b30681702fe78 100644 (file)
--- a/src/gx/glgfx.pas
+++ b/src/gx/glgfx.pas
glDisable(GL_TEXTURE_2D);
if (not isScaled) then
begin
+ glLineWidth(1);
glBegin(GL_LINES);
glVertex2f(x+0.375, y+0.375);
glVertex2f(x+len+0.375, y+0.375);
glDisable(GL_TEXTURE_2D);
if (not isScaled) then
begin
+ glLineWidth(1);
glBegin(GL_LINES);
glVertex2f(x+0.375, y+0.375);
glVertex2f(x+0.375, y+len+0.375);
if (not isScaled) then
begin
+ glLineWidth(1);
glBegin(GL_LINES);
glVertex2f(x1+0.375, y1+0.375);
glVertex2f(x2+0.375, y2+0.375);
end
else
begin
+ glLineWidth(1);
glBegin(GL_LINES);
glVertex2i(x1, y1);
glVertex2i(x2, y2);
end
else
begin
+ glLineWidth(1);
glBegin(GL_LINES);
glVertex2i(x, y); glVertex2i(x+w, y); // top
glVertex2i(x, y+h-1); glVertex2i(x+w, y+h-1); // bottom
begin
if not scaled then
begin
+ glLineWidth(1);
glBegin(GL_LINES);
glVertex2i(x, y); glVertex2i(x+w, y); // top
glVertex2i(x, y+h-1); glVertex2i(x+w, y+h-1); // bottom