Parcourir la source

Fixed size of filled rects.

rude il y a 15 ans
Parent
commit
806d085ee9
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  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;
 		}
 		}