Agar-SVN | 1 Jun 2009 12:43
Favicon

Agar: r8163 - trunk/demos/textbox

Author: vedge
Date: 2009-06-01 07:43:47 -0300 (Mon, 01 Jun 2009)
New Revision: 8163

Modified:
   trunk/demos/textbox/textbox.c
Log:
test word wrapping

Modified: trunk/demos/textbox/textbox.c
===================================================================
--- trunk/demos/textbox/textbox.c	2009-05-21 05:46:28 UTC (rev 8162)
+++ trunk/demos/textbox/textbox.c	2009-06-01 10:43:47 UTC (rev 8163)
 <at>  <at>  -13,7 +13,7  <at>  <at> 
 #include <stdlib.h>

 static void
-DisableInput(AG_Event *event)
+SetDisable(AG_Event *event)
 {
 	AG_Textbox *textbox = AG_PTR(1);
 	int flag = AG_INT(2);
 <at>  <at>  -26,6 +26,15  <at>  <at> 
 }

 static void
+SetWordWrap(AG_Event *event)
+{
+	AG_Textbox *textbox = AG_PTR(1);
+	int enable = AG_INT(2);
(Continue reading)

Agar-SVN | 1 Jun 2009 13:32
Favicon

Agar: r8164 - trunk/gui

Author: vedge
Date: 2009-06-01 08:32:09 -0300 (Mon, 01 Jun 2009)
New Revision: 8164

Modified:
   trunk/gui/AG_Widget.3
Log:
document AG_DrawRectBlended()

Modified: trunk/gui/AG_Widget.3
===================================================================
--- trunk/gui/AG_Widget.3	2009-06-01 10:43:47 UTC (rev 8163)
+++ trunk/gui/AG_Widget.3	2009-06-01 11:32:09 UTC (rev 8164)
 <at>  <at>  -627,6 +627,9  <at>  <at> 
 .Fn AG_DrawRectFilled "AG_Widget *widget, AG_Rect r" "Uint32 c"
 .Pp
 .Ft void
+.Fn AG_DrawRectBlended "AG_Widget *widget, AG_Rect r" "Uint8 c[4]" "AG_BlendFn blendFn"
+.Pp
+.Ft void
 .Fn AG_DrawPlus "AG_Widget *widget, AG_Rect r" "Uint8 c[4]" "AG_BlendFn blendFn"
 .Pp
 .Ft void
 <at>  <at>  -689,7 +692,12  <at>  <at> 
 .Fn AG_DrawFrame
 draws a 3D-style frame.
 .Fn AG_DrawFrameBlended
-draws a frame with alpha-blending.
+draws a frame with alpha-blending, with the color
+.Fa c
(Continue reading)

Agar-SVN | 2 Jun 2009 05:12
Favicon

Agar: r8167 - trunk/core

Author: vedge
Date: 2009-06-02 00:12:09 -0300 (Tue, 02 Jun 2009)
New Revision: 8167

Modified:
   trunk/core/variable.h
Log:
fix invalid BOUNDED_ATTRIBUTE() indices

Modified: trunk/core/variable.h
===================================================================
--- trunk/core/variable.h	2009-06-01 15:09:05 UTC (rev 8166)
+++ trunk/core/variable.h	2009-06-02 03:12:09 UTC (rev 8167)
 <at>  <at>  -502,7 +502,7  <at>  <at> 
 AG_Variable *AG_SetStringFixed(void *, const char *, char *, size_t)
                  BOUNDED_ATTRIBUTE(__string__, 3, 4);
 void         AG_InitStringFixed(AG_Variable *, char *, size_t)
-                 BOUNDED_ATTRIBUTE(__string__, 3, 4);
+                 BOUNDED_ATTRIBUTE(__string__, 2, 3);
 AG_Variable *AG_PrtString(void *, const char *, const char *, ...);
 AG_Variable *AG_BindString(void *, const char *, char *, size_t);
 AG_Variable *AG_BindStringFn(void *, const char *, AG_StringFn, const char *, ...);
Agar-SVN | 2 Jun 2009 12:54
Favicon

Agar: r8168 - trunk

Author: vedge
Date: 2009-06-02 07:54:38 -0300 (Tue, 02 Jun 2009)
New Revision: 8168

Modified:
   trunk/Makefile
Log:
fix ${PROJINCLUDES}, ${SUBDIR_foo}

Modified: trunk/Makefile
===================================================================
--- trunk/Makefile	2009-06-02 03:12:09 UTC (rev 8167)
+++ trunk/Makefile	2009-06-02 10:54:38 UTC (rev 8168)
 <at>  <at>  -4,17 +4,17  <at>  <at> 
 PROJECT=	"Agar"
 PROJECT_GUID=	"93733df2-c743-489e-bc9f-f22aee00d787"
 PROJCONFIGDIR=	include/agar/config
-PROJINCLUDES=	${SRCDIR}/configure.lua
+PROJINCLUDES=	../configure.lua

 include ${TOP}/Makefile.proj

 INCDIR=	core gui vg rg math dev
 SUBDIR=	core agar-core-config \
-	${SUBDIR_GUI} \
-	${SUBDIR_VG} \
-	${SUBDIR_RG} \
-	${SUBDIR_MATH} \
-	${SUBDIR_DEV}
+	${SUBDIR_gui} \
(Continue reading)

Agar-SVN | 2 Jun 2009 12:55
Favicon

Agar: r8169 - trunk

Author: vedge
Date: 2009-06-02 07:55:57 -0300 (Tue, 02 Jun 2009)
New Revision: 8169

Modified:
   trunk/configure
   trunk/configure.in
Log:
SUBDIR_FOO -> SUBDIR_foo

Modified: trunk/configure
===================================================================
--- trunk/configure	2009-06-02 10:54:38 UTC (rev 8168)
+++ trunk/configure	2009-06-02 10:55:57 UTC (rev 8169)
 <at>  <at>  -3949,9 +3949,9  <at>  <at> 
 echo "#define ENABLE_GUI \"$ENABLE_GUI\"" >> config/enable_gui.h
 echo "#endif" >> config/enable_gui.h
 echo "hdefs[\"ENABLE_GUI\"] = \"$ENABLE_GUI\"" >>configure.lua
-SUBDIR_GUI="gui agar-config"
-echo "SUBDIR_GUI=$SUBDIR_GUI" >>Makefile.config
-echo "mdefs[\"SUBDIR_GUI\"] = \"$SUBDIR_GUI\"" >>configure.lua
+SUBDIR_gui="gui agar-config"
+echo "SUBDIR_gui=$SUBDIR_gui" >>Makefile.config
+echo "mdefs[\"SUBDIR_gui\"] = \"$SUBDIR_gui\"" >>configure.lua
 $ECHO_N "checking for SDL (http://www.libsdl.org)..."
 $ECHO_N "checking for SDL (http://www.libsdl.org)..." >> config.log
 if [ "${SYSTEM}" = "Darwin" ]; then
 <at>  <at>  -5065,9 +5065,9  <at>  <at> 
 else
 echo "#undef ENABLE_GUI" >config/enable_gui.h
(Continue reading)

Agar-SVN | 2 Jun 2009 13:46
Favicon

Agar: r8170 - trunk/core

Author: vedge
Date: 2009-06-02 08:46:47 -0300 (Tue, 02 Jun 2009)
New Revision: 8170

Modified:
   trunk/core/core.c
   trunk/core/time_win32.c
   trunk/core/types.h
   trunk/core/variable.c
Log:
fix compilation errors under MSVC.

Modified: trunk/core/core.c
===================================================================
--- trunk/core/core.c	2009-06-02 10:55:57 UTC (rev 8169)
+++ trunk/core/core.c	2009-06-02 11:46:47 UTC (rev 8170)
 <at>  <at>  -49,8 +49,10  <at>  <at> 
 #endif

 #include <stdio.h>
+#include <stdlib.h>
+#ifndef _WIN32
 #include <unistd.h>
-#include <stdlib.h>
+#endif

 #ifdef AG_THREADS
 pthread_mutexattr_t agRecursiveMutexAttr;	/* Recursive mutex attributes */

Modified: trunk/core/time_win32.c
(Continue reading)

Agar-SVN | 2 Jun 2009 17:23
Favicon

Agar: r8171 - trunk/core

Author: vedge
Date: 2009-06-02 12:23:25 -0300 (Tue, 02 Jun 2009)
New Revision: 8171

Modified:
   trunk/core/list.h
Log:
+ missing begin/close.h

Modified: trunk/core/list.h
===================================================================
--- trunk/core/list.h	2009-06-02 11:46:47 UTC (rev 8170)
+++ trunk/core/list.h	2009-06-02 15:23:25 UTC (rev 8171)
 <at>  <at>  -5,6 +5,7  <at>  <at> 

 #ifndef _AGAR_CORE_LIST_H_
 #define _AGAR_CORE_LIST_H_
+#include <agar/core/begin.h>

 typedef struct ag_list {
 	int n;			/* Element count */
 <at>  <at>  -167,4 +168,5  <at>  <at> 
 }
 __END_DECLS

+#include <agar/core/close.h>
 #endif /* _AGAR_CORE_LIST_H_ */
Agar-SVN | 2 Jun 2009 17:23
Favicon

Agar: r8172 - trunk/core

Author: vedge
Date: 2009-06-02 12:23:48 -0300 (Tue, 02 Jun 2009)
New Revision: 8172

Modified:
   trunk/core/core_init.h
Log:
remove bogus AG_InitVideo() prototype

Modified: trunk/core/core_init.h
===================================================================
--- trunk/core/core_init.h	2009-06-02 15:23:25 UTC (rev 8171)
+++ trunk/core/core_init.h	2009-06-02 15:23:48 UTC (rev 8172)
 <at>  <at>  -18,7 +18,6  <at>  <at> 
 extern int agTerminating;	/* Application is exiting */

 int	 AG_InitCore(const char *, Uint);
-int	 AG_InitVideo(int, int, int, Uint);
 int	 AG_InitNetwork(Uint);
 void	 AG_AtExitFunc(void (*)(void));
 void	 AG_AtExitFuncEv(void (*)(struct ag_event *));
Agar-SVN | 2 Jun 2009 17:41
Favicon

Agar: r8173 - trunk/gui

Author: vedge
Date: 2009-06-02 12:41:47 -0300 (Tue, 02 Jun 2009)
New Revision: 8173

Modified:
   trunk/gui/widget.h
Log:
remove duplicate declarations of globals

Modified: trunk/gui/widget.h
===================================================================
--- trunk/gui/widget.h	2009-06-02 15:23:48 UTC (rev 8172)
+++ trunk/gui/widget.h	2009-06-02 15:41:47 UTC (rev 8173)
 <at>  <at>  -141,11 +141,6  <at>  <at> 

 __BEGIN_DECLS
 extern AG_WidgetClass agWidgetClass;
-extern int agKbdDelay;
-extern int agKbdRepeat;
-extern int agMouseDblclickDelay;
-extern int agMouseSpinDelay;
-extern int agMouseSpinIval;

 void AG_WidgetDraw(void *);
 void AG_WidgetSizeReq(void *, AG_SizeReq *);
Agar-SVN | 2 Jun 2009 17:42
Favicon

Agar: r8174 - trunk/gui

Author: vedge
Date: 2009-06-02 12:42:17 -0300 (Tue, 02 Jun 2009)
New Revision: 8174

Modified:
   trunk/gui/button.c
   trunk/gui/scrollbar.c
   trunk/gui/slider.c
Log:
needs <core/config.h>

Modified: trunk/gui/button.c
===================================================================
--- trunk/gui/button.c	2009-06-02 15:41:47 UTC (rev 8173)
+++ trunk/gui/button.c	2009-06-02 15:42:17 UTC (rev 8174)
 <at>  <at>  -24,6 +24,7  <at>  <at> 
  */

 #include <core/core.h>
+#include <core/config.h>

 #include "button.h"

Modified: trunk/gui/scrollbar.c
===================================================================
--- trunk/gui/scrollbar.c	2009-06-02 15:41:47 UTC (rev 8173)
+++ trunk/gui/scrollbar.c	2009-06-02 15:42:17 UTC (rev 8174)
 <at>  <at>  -24,6 +24,7  <at>  <at> 
  */

(Continue reading)


Gmane