Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 8 additions and 9 deletions.
  1. +2 −1 distr/deb/debian/control
  2. +6 −8 gui/psrender.cpp
View
3 distr/deb/debian/control
@@ -15,7 +15,8 @@ Build-Depends: pkg-config,
cmake,
libqt4-dev (>= 4.6.0),
libcups2-dev,
- libgs-dev
+ libgs-dev,
+ libsnappy-dev
Standards-Version: 3.9.1
Homepage: https://github.com/Boomaga/boomaga
View
14 gui/psrender.cpp
@@ -331,17 +331,15 @@ QList<QByteArray> PsRenderPrivate::gsArgs()
args << "-sDEVICE=display";
// Quality vs speed
- //args << QString("-r%1x%2").arg(200).toLatin1();
args << QString("-r%1x%2").arg(150).toLatin1();
- //"-g%dx%d", sWidth, sHeight); // Size of page
- //"-r%fx%f", sWidth * mXDpi , scale * mYDpi );
- //"-r%fx%f", scale * mXDpi, scale * mYDpi);
+ QSizeF pageSize = mProject->printer()->paperSize(Printer::Point);
+ args << QString("-dDEVICEWIDTHPOINTS=%1").arg(pageSize.width()).toAscii();
+ args << QString("-dDEVICEHEIGHTPOINTS=%1").arg(pageSize.height()).toAscii();
- //if (mUsePlatformFonts == FALSE)
- // sprintf(args[arg++], "-dNOPLATFONTS");
+ //args << QString("-dDEVICEWIDTH=%1").arg(pageSize.width()).toAscii();
+ //args << QString("-dDEVICEHEIGHT=%1").arg(pageSize.height()).toAscii();
- //"-dDEVICEWIDTHPOINTS=%d", width); Размеры страницы, перекрывают размеры прописанные в PS.
//"-dDEVICEHEIGHTPOINTS=%d", height);
//"-dDEVICEWIDTH=%d", width);
//"-dDEVICEHEIGHT=%d", height);
@@ -392,7 +390,7 @@ void PsRenderPrivate::run()
// Init .....................................
gsRes = gsapi_init_with_args(mGsInstance, argc, argv);
- if (gsRes < -100)
+ if (gsRes < 0)
{
qWarning() << "Error gsapi_init_with_args" << gsRes;
gsapi_delete_instance(mGsInstance);

No commit comments for this range

Something went wrong with that request. Please try again.