plugin/pango/Makefile
plugin/dot_layout/Makefile
plugin/neato_layout/Makefile
+ plugin/xlib/Makefile
cmd/Makefile
cmd/dot/Makefile
cmd/tools/Makefile
margin.y += (pageSize.y - imageSize.y) / 2;
}
- job->canvasBox.LL.x = margin.x;
- job->canvasBox.LL.y = margin.y;
- job->canvasBox.UR.x = margin.x + imageSize.x;
- job->canvasBox.UR.y = margin.y + imageSize.y;
+ job->canvasBox.LL.x = ROUND(job->margin.x);
+ job->canvasBox.LL.y = ROUND(job->margin.y);
+ job->canvasBox.UR.x = ROUND(job->margin.x) + imageSize.x;
+ job->canvasBox.UR.y = ROUND(job->margin.y) + imageSize.y;
+
+ /* calculate job->width and job->height with margins */
+ if (job->rotation) {
+ job->width = job->canvasBox.UR.y + job->canvasBox.LL.y;
+ job->height = job->canvasBox.UR.x + job->canvasBox.LL.x;
+ }
+ else {
+ job->width = job->canvasBox.UR.x + job->canvasBox.LL.x;
+ job->height = job->canvasBox.UR.y + job->canvasBox.LL.y;
+ }
+
#if 0
fprintf(stderr,"margin = %d,%d imageSize = %d,%d pageBoundingBox = %d,%d %d,%d\n",
else
EXPANDBB(job->boundingBox, job->pageBoundingBox);
- /* update job->width and job->height with margins */
- job->width = job->boundingBox.UR.x + job->boundingBox.LL.x;
- job->height = job->boundingBox.UR.y + job->boundingBox.LL.y;
-
if (job->rotation) {
if (job->flags & GVRENDER_Y_GOES_DOWN) {
job->translation.x = -job->pageBox.UR.x - job->pageBoundingBox.LL.y / job->scale.y;
# $Id$ $Revision$
## Process this file with automake to produce Makefile.in
-SUBDIRS = core gd pango dot_layout neato_layout
+SUBDIRS = core gd pango dot_layout neato_layout xlib
EXTRA_DIST = Makefile.old
AM_CPPFLAGS = \
-I$(top_srcdir) \
- $(GTK_CFLAGS) $(GNOMEUI_CFLAGS) $(LIBGVC_CFLAGS)
+ -I$(top_srcdir)/lib/common \
+ -I$(top_srcdir)/lib/pathplan \
+ -I$(top_srcdir)/lib/gvc \
+ -I$(top_srcdir)/lib/graph \
+ -I$(top_srcdir)/lib/cdt \
+ $(GTK_CFLAGS) $(GNOMEUI_CFLAGS)
if WITH_GTK
-lib_LTLIBRARIES = libgvplugin_gtk.la
-endif
+noinst_LTLIBRARIES = libgvplugin_gtk_C.la
-libgvplugin_gtk_la_LDFLAGS = -version-info @VERSION_INFO@ -no-undefined
+pkglib_LTLIBRARIES = libgvplugin_gtk.la
+endif
-libgvplugin_gtk_la_SOURCES = \
+libgvplugin_gtk_C_la_SOURCES = \
gvplugin_gtk.c \
gvdevice_gtk.c \
- support.c support.h \
- interface.c interface.h \
- callbacks.c callbacks.h
+ support.c \
+ interface.c \
+ callbacks.c
+libgvplugin_gtk_la_LDFLAGS = -version-info @VERSION_INFO@ -no-undefined
+libgvplugin_gtk_la_SOURCES = $(libgvplugin_gtk_C_la_SOURCES)
libgvplugin_gtk_la_LIBADD = $(GTK_LIBS) $(GNOMEUI_LIBS)
-CLEANFILES = *.BAK
-
EXTRA_DIST = gtk.glade gtk.gladep
#include <string.h>
#endif
-#include <gvplugin_device.h>
+#include "gvplugin_device.h"
#include "callbacks.h"
#include "interface.h"
#include <stdint.h>
#include <gtk/gtk.h>
-#include <gvplugin_device.h>
+
+#include "gvplugin_device.h"
#include "interface.h"
#include "support.h"