[teklib-general] teklib: added rawfb backend, clipping test and some rawfb related

Franciska Schulze fschulze at neoscientists.org
Thu Nov 27 18:37:24 CET 2008


details:   http://hg.teklib.org/teklib/rev/bc256b94f961
changeset: 204:bc256b94f961
user:      Franciska Schulze <fschulze at neoscientists.org>
date:      Tue Sep 30 11:59:35 2008 +0000
description:
added rawfb backend, clipping test and some rawfb related
visual tags

diffs (truncated from 3823 to 100 lines):

diff -r 07cbca33d6a8 -r bc256b94f961 src/build/tmkmakefile
--- a/src/build/tmkmakefile	Mon Sep 08 02:56:56 2008 +0200
+++ b/src/build/tmkmakefile	Tue Sep 30 11:59:35 2008 +0000
@@ -38,6 +38,9 @@
 			[embed body="meta"]
 				display_dfb
 			[/embed]
+			[embed body="meta"]
+				display_rawfb
+			[/embed]
 		[/case_no_descend]
 	[/switch]
 
diff -r 07cbca33d6a8 -r bc256b94f961 src/display_rawfb/build/tmkmakefile
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/display_rawfb/build/tmkmakefile	Tue Sep 30 11:59:35 2008 +0000
@@ -0,0 +1,57 @@
+
+[include name="BUILD:config.tmk"/]
+
+[body name="paths"]
+	TEKLIB = $(PARENT)$(PARENT)
+	BINDIR = $(TEKLIB)bin/$(HOST)
+[/body]
+
+[body name="modtargets"]
+
+	[embed body="mods"]
+		display_rawfb
+	[/embed]
+
+	EXTRAMODLIBS = -lfreetype
+	EXTRADEFS = -I/usr/include/freetype2/
+
+	[embed body="modlink"]
+		display_rawfb
+		$(OBJDIR)/display_rawfb_mod.mo \
+		$(OBJDIR)/display_rawfb_font.mo \
+		$(OBJDIR)/display_rawfb_api.mo \
+		$(OBJDIR)/display_rawfb_draw.mo \
+		$(OBJDIR)/display_rawfb_utf8.mo
+	[/embed]
+	[embed body="moddep"]
+		$(OBJDIR)/display_rawfb_mod.mo
+		display_rawfb_mod.c
+		display_rawfb_mod.h
+	[/embed]
+	[embed body="moddep"]
+		$(OBJDIR)/display_rawfb_font.mo
+		display_rawfb_font.c
+		display_rawfb_mod.h
+	[/embed]
+	[embed body="moddep"]
+		$(OBJDIR)/display_rawfb_api.mo
+		display_rawfb_api.c
+		display_rawfb_mod.h
+	[/embed]
+	[embed body="moddep"]
+		$(OBJDIR)/display_rawfb_draw.mo
+		display_rawfb_draw.c
+		display_rawfb_mod.h
+	[/embed]
+	[embed body="moddep"]
+		$(OBJDIR)/display_rawfb_utf8.mo
+		display_rawfb_utf8.c
+		display_rawfb_mod.h
+	[/embed]
+[/body]
+
+[include name="BUILD:builds.tmk"/]
+
+[render to="tmk_"]
+	makefile_modules
+[/render]
diff -r 07cbca33d6a8 -r bc256b94f961 src/display_rawfb/display_rawfb_api.c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/display_rawfb/display_rawfb_api.c	Tue Sep 30 11:59:35 2008 +0000
@@ -0,0 +1,700 @@
+/*
+**	teklib/src/display_rawfb/display_rawfb_api.c - RawFB Display driver
+**	Written by Franciska Schulze <fschulze at schulze-mueller.de>
+**	See copyright notice in teklib/COPYRIGHT
+*/
+
+#include "display_rawfb_mod.h"
+
+/*****************************************************************************/
+
+LOCAL void
+rawfb_openvisual(TMOD_RAWFB *mod, struct TVRawFBRequest *req)
+{
+	TTAGITEM *tags = req->tvr_Op.OpenVisual.Tags;
+	TAPTR exec = TGetExecBase(mod);
+	VISUAL *v = TExecAlloc0(exec, mod->rawfb_MemMgr, sizeof(VISUAL));
+	if (v)
+	{
+		v->subreq = TExecAllocMsg(exec, sizeof(struct TVRawFBRequest));
+		if (v->subreq)
+		{
+			v->replyport = TExecCreatePort(exec, TNULL);


More information about the teklib-general mailing list