Agar-SVN | 2 May 2010 02:45
Favicon

Agar: r8772 - trunk/gui

Author: vedge
Date: 2010-05-01 21:45:13 -0300 (Sat, 01 May 2010)
New Revision: 8772

Modified:
   trunk/gui/drv_sdl_common.c
Log:
inherit SDL_SRCALPHA -> AG_SRCALPHA; thanks trapdoor!

Modified: trunk/gui/drv_sdl_common.c
===================================================================
--- trunk/gui/drv_sdl_common.c	2010-04-28 01:00:34 UTC (rev 8771)
+++ trunk/gui/drv_sdl_common.c	2010-05-02 00:45:13 UTC (rev 8772)
 <at>  <at>  -322,8 +322,11  <at>  <at> 
 	}

 	if ((ds = AG_SurfaceNew(AG_SURFACE_PACKED, ss->w, ss->h, pf, 0))
-	    == NULL)
+	    == NULL) {
 		goto out;
+	}
+	if (ss->flags & SDL_SRCCOLORKEY) { ds->flags |= AG_SRCCOLORKEY; }
+	if (ss->flags & SDL_SRCALPHA) { ds->flags |= AG_SRCALPHA; }
 	
 	if (SDL_MUSTLOCK(ss)) {
 		SDL_LockSurface(ss);
Agar-SVN | 2 May 2010 03:22
Favicon

Agar: r8775 - trunk/demos/sdl

Author: vedge
Date: 2010-05-01 22:22:57 -0300 (Sat, 01 May 2010)
New Revision: 8775

Modified:
   trunk/demos/sdl/Makefile
   trunk/demos/sdl/configure
   trunk/demos/sdl/configure.in
   trunk/demos/sdl/sdl.c
Log:
test for SDL_image

Modified: trunk/demos/sdl/Makefile
===================================================================
--- trunk/demos/sdl/Makefile	2010-05-02 00:55:19 UTC (rev 8774)
+++ trunk/demos/sdl/Makefile	2010-05-02 01:22:57 UTC (rev 8775)
 <at>  <at>  -11,8 +11,8  <at>  <at> 
 PROG=	sdl
 SRCS=	sdl.c

-CFLAGS+=${AGAR_CFLAGS}
-LIBS+=	${AGAR_LIBS} -lSDL_image
+CFLAGS+=${AGAR_CFLAGS} ${SDL_IMAGE_CFLAGS}
+LIBS+=	${AGAR_LIBS} ${SDL_IMAGE_LIBS}

 all: all-subdir ${PROG}

Modified: trunk/demos/sdl/configure
===================================================================
--- trunk/demos/sdl/configure	2010-05-02 00:55:19 UTC (rev 8774)
(Continue reading)

Agar-SVN | 2 May 2010 05:24
Favicon

Agar: r8776 - trunk/gui

Author: vedge
Date: 2010-05-02 00:24:42 -0300 (Sun, 02 May 2010)
New Revision: 8776

Modified:
   trunk/gui/.manlinks.mk
   trunk/gui/menu.c
   trunk/gui/tlist.c
Log:
fix bogus AG_PopupMenu offset.

Modified: trunk/gui/.manlinks.mk
===================================================================
--- trunk/gui/.manlinks.mk	2010-05-02 01:22:57 UTC (rev 8775)
+++ trunk/gui/.manlinks.mk	2010-05-02 03:24:42 UTC (rev 8776)
 <at>  <at>  -1635,3 +1635,13  <at>  <at> 
 CATLINKS+=AG_Driver.cat3:AG_GetNextEvent.cat3
 MANLINKS+=AG_Driver.3:AG_ProcessEvent.3
 CATLINKS+=AG_Driver.cat3:AG_ProcessEvent.cat3
+MANLINKS+=AG_InitGraphics.3:AG_QuitGUI.3
+CATLINKS+=AG_InitGraphics.cat3:AG_QuitGUI.cat3
+MANLINKS+=AG_InitGraphics.3:AG_InitVideo.3
+CATLINKS+=AG_InitGraphics.cat3:AG_InitVideo.cat3
+MANLINKS+=AG_InitGraphics.3:AG_InitVideoSDL.3
+CATLINKS+=AG_InitGraphics.cat3:AG_InitVideoSDL.cat3
+MANLINKS+=AG_InitGraphics.3:AG_ResizeDisplay.3
+CATLINKS+=AG_InitGraphics.cat3:AG_ResizeDisplay.cat3
+MANLINKS+=AG_InitGraphics.3:AG_SetVideoResizeCallback.3
+CATLINKS+=AG_InitGraphics.cat3:AG_SetVideoResizeCallback.cat3

(Continue reading)

Agar-SVN | 3 May 2010 04:17
Favicon

Agar: r8777 - in trunk: core gui

Author: vedge
Date: 2010-05-02 23:17:06 -0300 (Sun, 02 May 2010)
New Revision: 8777

Added:
   trunk/gui/AG_DriverGLX.3
   trunk/gui/AG_DriverMw.3
   trunk/gui/AG_DriverSDLFB.3
   trunk/gui/AG_DriverSDLGL.3
   trunk/gui/AG_DriverSw.3
   trunk/gui/AG_DriverWGL.3
Modified:
   trunk/core/AG_Intro.3
   trunk/gui/AG_Driver.3
   trunk/gui/AG_InitGraphics.3
   trunk/gui/Makefile
   trunk/gui/drv_sdlfb.c
   trunk/gui/drv_sdlgl.c
   trunk/gui/gui.c
Log:
allow per-driver options

Modified: trunk/core/AG_Intro.3
===================================================================
--- trunk/core/AG_Intro.3	2010-05-02 03:24:42 UTC (rev 8776)
+++ trunk/core/AG_Intro.3	2010-05-03 02:17:06 UTC (rev 8777)
 <at>  <at>  -171,6 +171,8  <at>  <at> 
 Color scheme interface.
 .It Xr AG_Cursor 3
 Cursor configuration.
(Continue reading)

Agar-SVN | 8 May 2010 16:51
Favicon

Agar: r8778 - trunk/gui

Author: vedge
Date: 2010-05-08 11:51:35 -0300 (Sat, 08 May 2010)
New Revision: 8778

Modified:
   trunk/gui/AG_Text.3
   trunk/gui/text.c
   trunk/gui/text.h
Log:
- document AG_FetchFont(), AG_SetDefaultFont().
- add AG_SetRTL().

Modified: trunk/gui/AG_Text.3
===================================================================
--- trunk/gui/AG_Text.3	2010-05-03 02:17:06 UTC (rev 8777)
+++ trunk/gui/AG_Text.3	2010-05-08 14:51:35 UTC (rev 8778)
 <at>  <at>  -388,10 +388,49  <at>  <at> 
 .Fn AG_SetDefaultFont "AG_Font *font"
 .Pp
 .Ft void
+.Fn AG_SetRTL "int enable"
+.Pp
+.Ft void
 .Fn AG_TextParseFontSpec "const char *fontspec"
 .Pp
 .nr nS 0
 The
+.Fn AG_FetchFont
+function retrieves the specified font face, loading it from file if it's
+not currently resident.
(Continue reading)

Agar-SVN | 8 May 2010 16:53
Favicon

Agar: r8779 - in trunk: core dev

Author: vedge
Date: 2010-05-08 11:53:01 -0300 (Sat, 08 May 2010)
New Revision: 8779

Modified:
   trunk/core/object.c
   trunk/dev/browser.c
Log:
don't try to page in non-resident objects in AG_ObjectSaveToFile().

Modified: trunk/core/object.c
===================================================================
--- trunk/core/object.c	2010-05-08 14:51:35 UTC (rev 8778)
+++ trunk/core/object.c	2010-05-08 14:53:01 UTC (rev 8779)
 <at>  <at>  -1753,16 +1753,20  <at>  <at> 
 	char name[AG_OBJECT_PATH_MAX];
 	AG_Object *ob = p;
 	AG_DataSource *ds;
-	int pagedTemporarily;
 	int dataFound;

 	AG_LockVFS(ob);
 	AG_ObjectLock(ob);

 	if (!OBJECT_PERSISTENT(ob)) {
-		AG_SetError(_("The `%s' object is non-persistent."), ob->name);
+		AG_SetError("Object (%s) is non-persistent", ob->name);
 		goto fail_unlock;
 	}
+	if (!OBJECT_RESIDENT(ob)) {
(Continue reading)

Agar-SVN | 8 May 2010 16:53
Favicon

Agar: r8780 - in trunk: . Packages Packages/macosx103-powerpc Packages/macosx104-powerpc Packages/macosx105-powerpc Packages/mingw32-i386 Packages/mingw32-i386-nogl Packages/mingw32-i386-nogl_nothreads Packages/mingw32-i386-nothreads ada-core ada-demos ada-gui ada-gui/UNIT_TESTS core demos demos/chinese demos/configsettings demos/console demos/cplusplus demos/customeventloop demos/customwidget demos/fixedres demos/focusing demos/glview demos/keyevents demos/loader demos/maximized demos/minimal demos/modalwindowhandler demos/objsystem demos/plotting demos/reinit demos/rendertosurface demos/scrollbar demos/scrollview demos/sdl demos/sockets demos/table demos/textbox demos/textdlg demos/themes demos/threads demos/unitconv demos/windows dev gui gui/fonts math mk mk/install-sdk mk/libtool po rg tools tools/agar-bench tools/agar-disasm tools/agarpaint tools/agarpaint/p

Author: vedge
Date: 2010-05-08 11:53:38 -0300 (Sat, 08 May 2010)
New Revision: 8780

Modified:
   trunk/Makefile
   trunk/Makefile.proj
   trunk/Packages/Makefile.inc
   trunk/Packages/macosx103-powerpc/Makefile
   trunk/Packages/macosx104-powerpc/Makefile
   trunk/Packages/macosx105-powerpc/Makefile
   trunk/Packages/mingw32-i386-nogl/Makefile
   trunk/Packages/mingw32-i386-nogl_nothreads/Makefile
   trunk/Packages/mingw32-i386-nothreads/Makefile
   trunk/Packages/mingw32-i386/Makefile
   trunk/ada-core/Makefile
   trunk/ada-demos/Makefile
   trunk/ada-gui/Makefile
   trunk/ada-gui/UNIT_TESTS/Makefile
   trunk/core/.manlinks.mk
   trunk/core/Makefile
   trunk/core/Makefile.inc
   trunk/demos/Makefile
   trunk/demos/chinese/Makefile
   trunk/demos/configsettings/Makefile
   trunk/demos/console/Makefile
   trunk/demos/cplusplus/Makefile
   trunk/demos/customeventloop/Makefile
   trunk/demos/customwidget/Makefile
   trunk/demos/fixedres/Makefile
(Continue reading)

Agar-SVN | 8 May 2010 16:58
Favicon

Agar: r8781 - trunk/mk

Author: vedge
Date: 2010-05-08 11:58:32 -0300 (Sat, 08 May 2010)
New Revision: 8781

Modified:
   trunk/mk/mkdep
Log:
set eol-style = LF

Property changes on: trunk/mk/mkdep
___________________________________________________________________
Modified: svn:eol-style
   - native
   + LF
Agar-SVN | 9 May 2010 04:42
Favicon

Agar: r8782 - in trunk: . demos demos/chinese demos/configsettings demos/console demos/cplusplus demos/customeventloop demos/customwidget demos/fixedres demos/focusing demos/glview demos/keyevents demos/loader demos/maximized demos/minimal demos/modalwindowhandler demos/objsystem demos/plotting demos/reinit demos/rendertosurface demos/scrollbar demos/scrollview demos/sdl demos/sockets demos/table demos/textbox demos/textdlg demos/themes demos/threads demos/unitconv demos/windows tools/agar-bench tools/agar-disasm tools/agarpaint tools/agarrcsd tools/denuncomp

Author: vedge
Date: 2010-05-08 23:42:34 -0300 (Sat, 08 May 2010)
New Revision: 8782

Modified:
   trunk/configure
   trunk/demos/chinese/configure
   trunk/demos/configsettings/configure
   trunk/demos/configure
   trunk/demos/console/configure
   trunk/demos/cplusplus/configure
   trunk/demos/customeventloop/configure
   trunk/demos/customwidget/configure
   trunk/demos/fixedres/configure
   trunk/demos/focusing/configure
   trunk/demos/glview/configure
   trunk/demos/keyevents/configure
   trunk/demos/loader/configure
   trunk/demos/maximized/configure
   trunk/demos/minimal/configure
   trunk/demos/modalwindowhandler/configure
   trunk/demos/objsystem/configure
   trunk/demos/plotting/configure
   trunk/demos/reinit/configure
   trunk/demos/rendertosurface/configure
   trunk/demos/scrollbar/configure
   trunk/demos/scrollview/configure
   trunk/demos/sdl/configure
   trunk/demos/sockets/configure
   trunk/demos/table/configure
(Continue reading)

Agar-SVN | 10 May 2010 01:57
Favicon

Agar: r8783 - trunk/dev

Author: vedge
Date: 2010-05-09 20:57:37 -0300 (Sun, 09 May 2010)
New Revision: 8783

Modified:
   trunk/dev/browser.c
Log:
unbreak previous commit

Modified: trunk/dev/browser.c
===================================================================
--- trunk/dev/browser.c	2010-05-09 02:42:34 UTC (rev 8782)
+++ trunk/dev/browser.c	2010-05-09 23:57:37 UTC (rev 8783)
 <at>  <at>  -425,8 +425,8  <at>  <at> 
 				AG_Event ev;

 				AG_EventInit(&ev);
-				AG_EventPushPointer(&ev, ob);
-				AG_EventPushString(&ev, ob->archivePath);
+				AG_EventPushPointer(&ev, "", ob);
+				AG_EventPushString(&ev, "", ob->archivePath);
 				SaveObjectToFile(&ev);
 			}
 			break;

Gmane