+2008-09-28 Carlos Garcia Campos <carlosgc@gnome.org>
+
+ * backend/dvi/Makefile.am:
+ * backend/dvi/cairo-device.c:
+ * backend/dvi/dvi-document.c:
+ * backend/dvi/mdvi-lib/Makefile.am:
+
+ Fix several compile warnings in the dvi backend.
+
2008-09-28 Carlos Garcia Campos <carlosgc@gnome.org>
* backend/dvi/mdvi-lib/common.h:
-I$(top_srcdir)/libdocument \
-I$(srcdir)/mdvi-lib \
-DGNOMELOCALEDIR=\"$(datadir)/locale\" \
+ $(WARN_CFLAGS) \
$(BACKEND_CFLAGS) \
- $(SPECTRE_CFLAGS)
+ $(SPECTRE_CFLAGS) \
+ $(DISABLE_DEPRECATED)
backend_LTLIBRARIES = libdvidocument.la
#include <config.h>
+#include <stdlib.h>
#include <gdk/gdkcolor.h>
#ifdef HAVE_SPECTRE
#include <libspectre/spectre.h>
static void
dvi_cairo_put_pixel (void *image, int x, int y, Ulong color)
{
- cairo_t *cr;
cairo_surface_t *surface;
gint rowstride;
guchar *p;
gint page_width;
gint page_height;
cairo_surface_t *surface;
- gchar *pixels;
+ guchar *pixels;
gint rowstride;
static const cairo_user_data_key_t key;
page_height = dvi->dvi_page_h * dvi->params.vconv + 2 * cairo_device->ymargin;
rowstride = page_width * 4;
- pixels = (gchar *) g_malloc (page_height * rowstride);
+ pixels = (guchar *) g_malloc (page_height * rowstride);
memset (pixels, 0xff, page_height * rowstride);
surface = cairo_image_surface_create_for_data (pixels,
#include "config.h"
-#include <config.h>
#include "dvi-document.h"
#include "ev-document-thumbnails.h"
#include "ev-document-misc.h"
#include "ev-file-exporter.h"
+#include "ev-file-helpers.h"
#include "mdvi.h"
#include "fonts.h"
+#include "color.h"
#include "cairo-device.h"
#include <glib/gi18n.h>
+#include <ctype.h>
GMutex *dvi_context_mutex = NULL;
+INCLUDES = $(WARN_CFLAGS)
noinst_LTLIBRARIES = libmdvi.la
libmdvi_la_SOURCES = \