summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/FontControl.cpp
Side-by-side diff
Diffstat (limited to 'noncore/apps/opie-reader/FontControl.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-reader/FontControl.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/noncore/apps/opie-reader/FontControl.cpp b/noncore/apps/opie-reader/FontControl.cpp
index cfa8534..d082898 100644
--- a/noncore/apps/opie-reader/FontControl.cpp
+++ b/noncore/apps/opie-reader/FontControl.cpp
@@ -1,10 +1,19 @@
+#include <qfontdatabase.h>
+#include "opie.h"
+#include "useqpe.h"
#include "FontControl.h"
int FontControl::gzoom()
{
+ if (m_fixgraphics)
+ {
+ return 100;
+ }
+ else
+ {
int ret;
if (m_size == g_size)
{
ret = m_fontsizes[m_size]*m_basesize;
}
else if (g_size < 0)
@@ -18,12 +27,13 @@ int FontControl::gzoom()
int f = g_size - m_maxsize + 1;
ret = (m_fontsizes[m_maxsize-1]*m_basesize) << (f/2);
if (f%2) ret = (3*ret/2);
}
return ret;
}
+}
bool FontControl::ChangeFont(QString& n, int tgt)
{
QValueList<int>::Iterator it;
QFontDatabase fdb;
QValueList<int> sizes = fdb.pointSizes(n);