*_COMPILE_FIRST is not needed now

use QPaintDevice::x11AppDpiY() for vertical dpi instead of  QPaintDevice::x11AppDpiX()

svn path=/trunk/kdegraphics/kpdf/; revision=343763
remotes/origin/kpdf-experiments
Albert Astals Cid 22 years ago
parent d41e0ae37e
commit d40a570e87
  1. 3
      kpdf/Makefile.am
  2. 2
      kpdf/kpdf_part.cpp
  3. 1
      splash/Makefile.am

@ -1,5 +1,5 @@
# set the include path for X, qt and KDE
INCLUDES = -I$(srcdir)/.. -I$(srcdir)/../splash -I$(srcdir)/../fofi -I$(srcdir)/../goo -I$(srcdir)/../xpdf $(all_includes) $(FREETYPE_CFLAGS)
INCLUDES = -I$(srcdir)/.. -I$(srcdir)/../splash -I$(srcdir)/../goo -I$(srcdir)/../xpdf $(all_includes) $(FREETYPE_CFLAGS)
# these are the headers for your project
noinst_HEADERS = kpdf_shell.h kpdf_part.h kpdf_pagewidget.h QOutputDevPixmap.h QOutputDev.h
@ -45,7 +45,6 @@ kde_module_LTLIBRARIES = libkpdfpart.la
libkpdfpart_la_SOURCES = QOutputDev.cpp QOutputDevPixmap.cpp QOutputDevKPrinter.cpp kpdf_part.cpp kpdf_pagewidget.cc part.cpp thumbnail.cpp thumbnaillist.cpp kpdf_error.cpp xpdf_errors.cpp
libkpdfpart_la_LDFLAGS = -module $(KDE_PLUGIN) $(all_libraries)
libkpdfpart_la_LIBADD = ../xpdf/libxpdf.la $(LIB_KPARTS) $(LIB_KFILE) $(LIB_KDEPRINT) $(LIB_KUTILS)
libkpdfpart_la_COMPILE_FIRST = ../aconf.h
# this is where the desktop file will go
partdesktopdir = $(kde_servicesdir)

@ -417,7 +417,7 @@ void Part::nextThumbnail()
QOutputDevPixmap odev(paperColor);
odev.startDoc(m_doc->getXRef());
m_doc->displayPage(&odev, m_nextThumbnail, QPaintDevice::x11AppDpiX(), QPaintDevice::x11AppDpiX(), 0, true, true);
m_doc->displayPage(&odev, m_nextThumbnail, QPaintDevice::x11AppDpiX(), QPaintDevice::x11AppDpiY(), 0, true, true);
pdfpartview->setThumbnail(m_nextThumbnail, odev.getPixmap());
m_nextThumbnail++;

@ -4,6 +4,5 @@ libsplash_la_SOURCES = Splash.cc SplashBitmap.cc SplashClip.cc SplashFTFont.cc S
SplashFTFontFile.cc SplashFont.cc SplashFontEngine.cc SplashFontFile.cc SplashFontFileID.cc \
SplashPath.cc SplashPattern.cc SplashScreen.cc SplashState.cc SplashT1Font.cc \
SplashT1FontEngine.cc SplashT1FontFile.cc SplashXPath.cc SplashXPathScanner.cc
libsplash_la_COMPILE_FIRST = ../aconf.h
noinst_LTLIBRARIES = libsplash.la

Loading…
Cancel
Save