It runs on the OLPC XO now, unless you run out of memory. Do not even think of using stamps, system fonts, etc.

This commit is contained in:
Albert Cahalan 2007-03-12 03:55:30 +00:00
parent 4097c3d14b
commit 542aaf4cad
3 changed files with 17 additions and 3 deletions

View file

@ -104,7 +104,8 @@ SVG_CFLAGS=-I/usr/include/cairo
# The entire set of CFLAGS:
#-ffast-math
CFLAGS=-O2 -W -Wall -fno-common -ffloat-store \
OPTFLAGS=-O2
CFLAGS=$(OPTFLAGS) -W -Wall -fno-common -ffloat-store \
-Wcast-align -Wredundant-decls \
-Wbad-function-cast -Wwrite-strings \
-Waggregate-return \
@ -184,6 +185,15 @@ nosvg:
make SVG_LIB= SVG_CFLAGS= NOSVGFLAG=NOSVG
# "make olpc" builds the program for an OLPC XO:
olpc:
@echo
@echo "Building for an OLPC XO"
@echo
make SVG_LIB= SVG_CFLAGS= NOSVGFLAG=NOSVG OPTFLAGS='-O2 -fno-tree-pre -march=athlon -mtune=generic -mpreferred-stack-boundary=2 -mmmx -m3dnow -fomit-frame-pointer -falign-functions=0 -falign-jumps=0 -DOLPC_XO -DSUGAR'
# "make beos" builds the program for BeOS
beos:

View file

@ -79,7 +79,11 @@ extern unsigned text_size;
// nice progression (alternating 33% and 25%) 9 12 18 24 36 48 72 96 144 192
// commonly hinted sizes seem to be: 9, 10, 12, 14, 18, 20 (less so), 24
// reasonable: 9,12,18... and 10,14,18...
static int text_sizes[] = { 9, 12, 18, 24, 36, 48,
static int text_sizes[] = {
#ifndef OLPC_XO
9,
#endif
12, 18, 24, 36, 48,
56, 64, 96, 112, 128, 160
}; // point sizes

View file

@ -32,7 +32,7 @@
/* Color depth for Tux Paint to run in, and store canvases in: */
#ifdef NOKIA_770
#if defined(NOKIA_770) || defined(OLPC_XO)
# define VIDEO_BPP 15
#else
//# define VIDEO_BPP 15 // saves memory