Agar-SVN | 16 Jan 2009 08:01
Favicon

Agar: r8036 - trunk/gui

Author: vedge
Date: 2009-01-16 03:01:54 -0400 (Fri, 16 Jan 2009)
New Revision: 8036

Modified:
   trunk/gui/primitive.c
Log:
fix GL version of DrawArrowLeft() and DrawArrowRight(); closes #74

Modified: trunk/gui/primitive.c
===================================================================
--- trunk/gui/primitive.c	2009-01-13 15:56:20 UTC (rev 8035)
+++ trunk/gui/primitive.c	2009-01-16 07:01:54 UTC (rev 8036)
 <at>  <at>  -1403,6 +1403,7  <at>  <at> 
 {
 	AG_Widget *wid = p;
 	Uint8 r, g, b;
+	int h2 = h>>1;

 	AG_GetRGB(c1, agVideoFmt, &r,&g,&b);
 	glMatrixMode(GL_MODELVIEW);
 <at>  <at>  -1411,9 +1412,9  <at>  <at> 
 	glBegin(GL_POLYGON);
 	{
 		glColor3ub(r, g, b);
-		glVertex2i(x,		y - (h>>1));
-		glVertex2i(x - (h>>1),	y + (h>>1));
-		glVertex2i(x + (h>>1),	y + (h>>1));
+		glVertex2i(x,		y - h2);
+		glVertex2i(x - h2,	y + h2);
(Continue reading)


Gmane