view packages/services/gfx/mw/current/src/drivers/nofont.c @ 3292:7f8e529b4d82 default tip

Fix FREESCALE_EDMA_NBYTES_MLOFFYES_MLOFF() so it works with negative offsets.
author vae
date Wed, 29 Apr 2015 23:31:48 +0000
parents e0c0827131d1
children
line wrap: on
line source

/*
 * Copyright (c) 2000 Greg Haerr <greg@censoft.com>
 *
 * Screen Driver Utilities
 * 
 * Microwindows null font stub
 */
#include <stdio.h>
#include "device.h"
#include "genfont.h"

/* no compiled in fonts*/

static MWCFONT nullfont = {
	"", 0, 0, 0, 0, 0, NULL, NULL, NULL
};

/* handling routines for MWCOREFONT*/
static MWFONTPROCS fontprocs = {
	MWTF_ASCII,		/* routines expect ascii*/
	NULL,			/* getfontinfo*/
	NULL,			/* gettextsize*/
	NULL,			/* gettextbits*/
	NULL,			/* unloadfont*/
	NULL,			/* xxx_drawtext*/
	NULL,			/* setfontsize*/
	NULL,			/* setfontrotation*/
	NULL,			/* setfontattr*/
};

/* first font is default font if no match*/
MWCOREFONT gen_fonts[NUMBER_FONTS] = {
	{&fontprocs, 0, 0, 0, MWFONT_SYSTEM_VAR, &nullfont},
	{&fontprocs, 0, 0, 0, MWFONT_SYSTEM_VAR, &nullfont},
	{&fontprocs, 0, 0, 0, MWFONT_SYSTEM_VAR, &nullfont},
	{&fontprocs, 0, 0, 0, MWFONT_SYSTEM_VAR, &nullfont},
};