git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@994
a5681a0c-68f1-0310-ab6d-
d61299d08faa
-****************************************************************************
+/****************************************************************************
* RRDtool 1.2.19 Copyright by Tobi Oetiker, 1997-2007
****************************************************************************
* rrd_gfx.c graphics wrapper for rrdtool
* RRDtool 1.2.19 Copyright by Tobi Oetiker, 1997-2007
****************************************************************************
* rrd_gfx.c graphics wrapper for rrdtool
/* stupid MSVC doesnt support variadic macros = no debug for now! */
#ifdef _MSC_VER
/* stupid MSVC doesnt support variadic macros = no debug for now! */
#ifdef _MSC_VER
-# define DPRINTF(...) fprintf(stderr, __VA_ARGS__);
+# define RRDPRINTF(...) fprintf(stderr, __VA_ARGS__);
# endif /* DEBUG */
#endif /* _MSC_VER */
#include "rrd_tool.h"
# endif /* DEBUG */
#endif /* _MSC_VER */
#include "rrd_tool.h"
canvas->aa_type == AA_LIGHT ? FT_LOAD_TARGET_LIGHT :
FT_LOAD_TARGET_MONO : FT_LOAD_TARGET_MONO);
if (error) {
canvas->aa_type == AA_LIGHT ? FT_LOAD_TARGET_LIGHT :
FT_LOAD_TARGET_MONO : FT_LOAD_TARGET_MONO);
if (error) {
- DPRINTF("couldn't load glyph: %c\n", letter)
+ RRDPRINTF("couldn't load glyph: %c\n", letter)
continue;
}
error = FT_Get_Glyph (slot, &glyph->image);
if (error) {
continue;
}
error = FT_Get_Glyph (slot, &glyph->image);
if (error) {
- DPRINTF("couldn't get glyph %c from slot %d\n", letter, (int)slot)
+ RRDPRINTF("couldn't get glyph %c from slot %d\n", letter, (int)slot)
continue;
}
/* if we are in tabbing mode, we replace the tab with a space and shift the position
continue;
}
/* if we are in tabbing mode, we replace the tab with a space and shift the position
FT_Vector_Transform (&vec, &string->transform);
error = FT_Glyph_Transform (glyph->image, &string->transform, &vec);
if (error) {
FT_Vector_Transform (&vec, &string->transform);
error = FT_Glyph_Transform (glyph->image, &string->transform, &vec);
if (error) {
- DPRINTF("couldn't transform glyph id %d\n", letter)
+ RRDPRINTF("couldn't transform glyph id %d\n", letter)
canvas->aa_type == AA_LIGHT ? FT_RENDER_MODE_LIGHT :
FT_RENDER_MODE_MONO : FT_RENDER_MODE_MONO, 0, 1);
if (error) {
canvas->aa_type == AA_LIGHT ? FT_RENDER_MODE_LIGHT :
FT_RENDER_MODE_MONO : FT_RENDER_MODE_MONO, 0, 1);
if (error) {
- DPRINTF("couldn't convert glyph id %d to bitmap\n", letter)
+ RRDPRINTF("couldn't convert glyph id %d to bitmap\n", letter)
/* long buf_x,comp_n; */
/* make copy to transform */
if (! glyph->image) {
/* long buf_x,comp_n; */
/* make copy to transform */
if (! glyph->image) {
+ RRDPRINTF("no image\n")
continue;
}
error = FT_Glyph_Copy (glyph->image, &image);
if (error) {
continue;
}
error = FT_Glyph_Copy (glyph->image, &image);
if (error) {
- DPRINTF("couldn't copy image\n")
+ RRDPRINTF("couldn't copy image\n")