Browse Source

Fixed size of filled rects.

rude 15 years ago
parent
commit
806d085ee9
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/modules/graphics/opengl/Graphics.cpp

+ 3 - 3
src/modules/graphics/opengl/Graphics.cpp

@@ -936,9 +936,9 @@ namespace opengl
 		case DRAW_FILL:
 		case DRAW_FILL:
 			glBegin(GL_QUADS);
 			glBegin(GL_QUADS);
 				glVertex2f(x, y);
 				glVertex2f(x, y);
-				glVertex2f(x, y+h-1);
-				glVertex2f(x+w-1, y+h-1);
-				glVertex2f(x+w-1, y);
+				glVertex2f(x, y+h);
+				glVertex2f(x+w, y+h);
+				glVertex2f(x+w, y);
 			glEnd();
 			glEnd();
 			break;
 			break;
 		}
 		}