Agar-SVN | 3 Jul 03:12
Favicon

Agar: r8212 - trunk/gui

Author: vedge
Date: 2009-07-02 22:13:22 -0300 (Thu, 02 Jul 2009)
New Revision: 8212

Modified:
   trunk/gui/editable.c
Log:
ignore modifier key events

Modified: trunk/gui/editable.c
===================================================================
--- trunk/gui/editable.c	2009-07-03 01:07:15 UTC (rev 8211)
+++ trunk/gui/editable.c	2009-07-03 01:13:22 UTC (rev 8212)
@@ -816,8 +816,24 @@
 	int keymod = AG_INT(2);
 	Uint32 unicode = (Uint32)AG_INT(3);		/* XXX use AG_UINT32 */

-	if (keysym == SDLK_TAB && !(WIDGET(ed)->flags & AG_WIDGET_CATCH_TAB))
+	switch (keysym) {
+	case SDLK_LSHIFT:
+	case SDLK_RSHIFT:
+	case SDLK_LALT:
+	case SDLK_RALT:
+	case SDLK_LMETA:
+	case SDLK_RMETA:
+	case SDLK_LCTRL:
+	case SDLK_RCTRL:
 		return;
+	case SDLK_TAB:
+		if (!(WIDGET(ed)->flags & AG_WIDGET_CATCH_TAB)) {
(Continue reading)

Agar-SVN | 3 Jul 03:04
Favicon

Agar: r8211 - trunk/gui

Author: vedge
Date: 2009-07-02 22:07:15 -0300 (Thu, 02 Jul 2009)
New Revision: 8211

Modified:
   trunk/gui/AG_Window.3
   trunk/gui/window.c
   trunk/gui/window.h
Log:
+ AG_WINDOW_MODKEYEVENTS flag

Modified: trunk/gui/AG_Window.3
===================================================================
--- trunk/gui/AG_Window.3	2009-07-01 02:18:04 UTC (rev 8210)
+++ trunk/gui/AG_Window.3	2009-07-03 01:07:15 UTC (rev 8211)
@@ -567,6 +567,9 @@
 User is not allowed to move the window.
 .It AG_WINDOW_NOCLIPPING
 Disable the clipping rectangle over the window area (enabled by default)..
+.It AG_WINDOW_MODKEYEVENTS
+Deliver discrete events to widget when modifier keys (CTRL, ALT, SHIFT)
+are pressed.
 .El
 .Sh EVENTS
 The

Modified: trunk/gui/window.c
===================================================================
--- trunk/gui/window.c	2009-07-01 02:18:04 UTC (rev 8210)
+++ trunk/gui/window.c	2009-07-03 01:07:15 UTC (rev 8211)
(Continue reading)

Agar-SVN | 1 Jul 04:16
Favicon

Agar: r8210 - trunk/core

Author: vedge
Date: 2009-06-30 23:18:04 -0300 (Tue, 30 Jun 2009)
New Revision: 8210

Modified:
   trunk/core/AG_Core.3
Log:
document the AG_InitVideo*() flags in detail.

Modified: trunk/core/AG_Core.3
===================================================================
--- trunk/core/AG_Core.3	2009-06-22 06:54:41 UTC (rev 8209)
+++ trunk/core/AG_Core.3	2009-07-01 02:18:04 UTC (rev 8210)
@@ -110,6 +110,52 @@
 flag set, it is assumed that Agar should render itself using OpenGL
 primitives, otherwise plain framebuffer mode is used.
 .Pp
+.Fn AG_InitVideo
+and
+.Fn AG_InitVideoSDL
+recognize the following
+.Fa flags
+options:
+.Bl -tag -width "AG_VIDEO_OPENGL_OR_SDL "
+.It AG_VIDEO_HWSURFACE
+Request a hardware frame buffer (pass
+.Dv SDL_HWSURFACE
+in SDL mode).
+.It AG_VIDEO_ASYNCBLIT
+Enable asynchronous blitting updates (pass
(Continue reading)

Agar-SVN | 22 Jun 08:51
Favicon

Agar: r8209 - trunk/demos

Author: vedge
Date: 2009-06-22 03:54:41 -0300 (Mon, 22 Jun 2009)
New Revision: 8209

Removed:
   trunk/demos/table2/
Modified:
   trunk/demos/Makefile
Log:
redundant with table/

Modified: trunk/demos/Makefile
===================================================================
--- trunk/demos/Makefile	2009-06-22 06:50:07 UTC (rev 8208)
+++ trunk/demos/Makefile	2009-06-22 06:54:41 UTC (rev 8209)
@@ -6,7 +6,6 @@
 	focusing \
 	loader \
 	table \
-	table2 \
 	textbox \
 	themes \
 	maximized \
Agar-SVN | 22 Jun 08:47
Favicon

Agar: r8208 - in trunk/demos: console fixedres focusing glview loader maximized objsystem plotting scrollbar scrollview sockets table table2 textbox themes unitconv

Author: vedge
Date: 2009-06-22 03:50:07 -0300 (Mon, 22 Jun 2009)
New Revision: 8208

Modified:
   trunk/demos/console/console.c
   trunk/demos/fixedres/fixedres.c
   trunk/demos/focusing/focusing.c
   trunk/demos/glview/glview.c
   trunk/demos/loader/loader.c
   trunk/demos/maximized/maximized.c
   trunk/demos/objsystem/animal.c
   trunk/demos/objsystem/mammal.c
   trunk/demos/plotting/plotting.c
   trunk/demos/scrollbar/scrollbar.c
   trunk/demos/scrollview/scrollview.c
   trunk/demos/sockets/sockets.c
   trunk/demos/table/table.c
   trunk/demos/table2/table.c
   trunk/demos/textbox/textbox.c
   trunk/demos/themes/themes.c
   trunk/demos/unitconv/unitconv.c
Log:
AG_FOO_{HFILL,VFILL,EXPAND} are deprecated, use AG_Expand*() instead.

Modified: trunk/demos/console/console.c
===================================================================
--- trunk/demos/console/console.c	2009-06-22 06:44:45 UTC (rev 8207)
+++ trunk/demos/console/console.c	2009-06-22 06:50:07 UTC (rev 8208)
@@ -45,8 +45,12 @@
(Continue reading)

Agar-SVN | 22 Jun 08:43
Favicon

Agar: r8207 - trunk/gui

Author: vedge
Date: 2009-06-22 03:44:45 -0300 (Mon, 22 Jun 2009)
New Revision: 8207

Modified:
   trunk/gui/hsvpal.c
Log:
define <64x64 as undersize

Modified: trunk/gui/hsvpal.c
===================================================================
--- trunk/gui/hsvpal.c	2009-06-22 06:36:37 UTC (rev 8206)
+++ trunk/gui/hsvpal.c	2009-06-22 06:44:45 UTC (rev 8207)
@@ -802,7 +802,7 @@
 {
 	AG_HSVPal *pal = obj;

-	if (a->w < 32 || a->h < 32)
+	if (a->w < 64 || a->h < 64)
 		return (-1);

 	pal->rAlpha.x = 0;
Agar-SVN | 22 Jun 08:34
Favicon

Agar: r8206 - trunk/gui

Author: vedge
Date: 2009-06-22 03:36:37 -0300 (Mon, 22 Jun 2009)
New Revision: 8206

Modified:
   trunk/gui/hsvpal.c
Log:
revert r8193, it is not needed

Modified: trunk/gui/hsvpal.c
===================================================================
--- trunk/gui/hsvpal.c	2009-06-22 06:23:38 UTC (rev 8205)
+++ trunk/gui/hsvpal.c	2009-06-22 06:36:37 UTC (rev 8206)
@@ -838,10 +838,6 @@
 	if (WIDGET(pal)->w < 16 || WIDGET(pal)->h < 16)
 		return;

-#ifdef HAVE_OPENGL
-	if (WIDGET(pal)->textures[0] == 0)
-		pal->flags |= AG_HSVPAL_DIRTY;
-#endif
 	if (pal->flags & AG_HSVPAL_DIRTY) {
 		pal->flags &= ~(AG_HSVPAL_DIRTY);
 		pal->surface = AG_SurfaceVideoRGB(WIDTH(pal), HEIGHT(pal));
Agar-SVN | 22 Jun 08:21
Favicon

Agar: r8205 - trunk/demos

Author: vedge
Date: 2009-06-22 03:23:38 -0300 (Mon, 22 Jun 2009)
New Revision: 8205

Removed:
   trunk/demos/initvideosdl/
Modified:
   trunk/demos/Makefile
Log:
redundant with themes/

Modified: trunk/demos/Makefile
===================================================================
--- trunk/demos/Makefile	2009-06-22 03:13:09 UTC (rev 8204)
+++ trunk/demos/Makefile	2009-06-22 06:23:38 UTC (rev 8205)
@@ -17,7 +17,6 @@
 	cplusplus \
 	plotting \
 	scrollbar \
-	initvideosdl \
 	keyevents \
 	customwidget \
 	windows \
Agar-SVN | 22 Jun 05:09
Favicon

Agar: r8204 - in trunk: core gui math rg

Author: vedge
Date: 2009-06-22 00:13:09 -0300 (Mon, 22 Jun 2009)
New Revision: 8204

Modified:
   trunk/core/config.c
   trunk/core/config.h
   trunk/gui/label.c
   trunk/gui/progress_bar.c
   trunk/math/m_matview.c
   trunk/rg/tileview.c
Log:
backout r8148 (agTextCache optimization) for now

Modified: trunk/core/config.c
===================================================================
--- trunk/core/config.c	2009-06-22 02:59:08 UTC (rev 8203)
+++ trunk/core/config.c	2009-06-22 03:13:09 UTC (rev 8204)
@@ -53,6 +53,7 @@
 int agTextComposition = 1;		/* Built-in input composition */
 int agTextBidi = 0;			/* Bidirectionnal text display */
 int agTextAntialiasing = 1;		/* Use font antialiasing */
+int agTextCache = 0;			/* Dynamic text caching */
 int agTextTabWidth = 40;		/* Tab width (px) */
 int agTextBlinkRate = 250;		/* Cursor blink rate (ms) */
 int agTextSymbols = 1;			/* Process special symbols in text */

Modified: trunk/core/config.h
===================================================================
--- trunk/core/config.h	2009-06-22 02:59:08 UTC (rev 8203)
(Continue reading)

Agar-SVN | 22 Jun 04:57
Favicon

Agar: r8203 - trunk/core

Author: vedge
Date: 2009-06-21 23:59:08 -0300 (Sun, 21 Jun 2009)
New Revision: 8203

Modified:
   trunk/core/variable.h
Log:
c++ warnings

Modified: trunk/core/variable.h
===================================================================
--- trunk/core/variable.h	2009-06-21 12:49:32 UTC (rev 8202)
+++ trunk/core/variable.h	2009-06-22 02:59:08 UTC (rev 8203)
@@ -586,7 +586,7 @@
 static __inline__ AG_Variable *
 AG_GetVariableLocked(void *pObj, const char *name)
 {
-	AG_Object *obj = pObj;
+	AG_Object *obj = AGOBJECT(pObj);
 	AG_Variable *V;
 	Uint i;
 	
Agar-SVN | 21 Jun 14:48
Favicon

Agar: r8202 - trunk/gui

Author: vedge
Date: 2009-06-21 09:49:32 -0300 (Sun, 21 Jun 2009)
New Revision: 8202

Modified:
   trunk/gui/AG_Table.3
   trunk/gui/button.c
   trunk/gui/checkbox.c
   trunk/gui/combo.c
   trunk/gui/fspinbutton.c
   trunk/gui/mfspinbutton.c
   trunk/gui/numerical.c
   trunk/gui/pixmap.c
   trunk/gui/progress_bar.c
   trunk/gui/radio.c
   trunk/gui/slider.c
   trunk/gui/spinbutton.c
   trunk/gui/table.c
   trunk/gui/ucombo.c
   trunk/gui/widget.h
Log:
- disallow embedding of improper widgets in AG_Table %[W] cells.
- handle out-of-memory condition in AG_TableAddRow() and AG_TableAddCol()
  by returning -1 instead of fatal.

Modified: trunk/gui/AG_Table.3
===================================================================
--- trunk/gui/AG_Table.3	2009-06-21 12:42:57 UTC (rev 8201)
+++ trunk/gui/AG_Table.3	2009-06-21 12:49:32 UTC (rev 8202)
@@ -278,8 +278,8 @@
(Continue reading)


Gmane