DEADSOFTWARE

glgfx: cosmetix
[d2df-sdl.git] / src / gx / glgfx.pas
index 84bbe534e6109242155034c68c8be8cd46123569..1237550cc98d8b425a42f041810b30681702fe78 100644 (file)
@@ -1,4 +1,5 @@
-(* Copyright (C)  DooM 2D:Forever Developers
+(* coded by Ketmar // Invisible Vector <ketmar@ketmar.no-ip.org>
+ * Understanding is not required. Only obedience.
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -11,7 +12,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
  *)
 {$INCLUDE ../shared/a_modes.inc}
 unit glgfx;
@@ -1245,6 +1246,7 @@ begin
   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);
@@ -1269,6 +1271,7 @@ begin
   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);
@@ -1297,6 +1300,7 @@ begin
 
   if (not isScaled) then
   begin
+    glLineWidth(1);
     glBegin(GL_LINES);
       glVertex2f(x1+0.375, y1+0.375);
       glVertex2f(x2+0.375, y2+0.375);
@@ -1311,6 +1315,7 @@ begin
   end
   else
   begin
+    glLineWidth(1);
     glBegin(GL_LINES);
       glVertex2i(x1, y1);
       glVertex2i(x2, y2);
@@ -1341,6 +1346,7 @@ begin
   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
@@ -1397,6 +1403,7 @@ begin
   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