summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/FontControl.cpp
Unidiff
Diffstat (limited to 'noncore/apps/opie-reader/FontControl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-reader/FontControl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/apps/opie-reader/FontControl.cpp b/noncore/apps/opie-reader/FontControl.cpp
index 9bb3bc0..08b8c52 100644
--- a/noncore/apps/opie-reader/FontControl.cpp
+++ b/noncore/apps/opie-reader/FontControl.cpp
@@ -1,25 +1,26 @@
1#include <qfontdatabase.h> 1#include <qfontdatabase.h>
2
2#include "FontControl.h" 3#include "FontControl.h"
3 4
4int FontControl::gzoom() 5int FontControl::gzoom()
5{ 6{
6 if (m_fixgraphics) 7 if (m_fixgraphics)
7 { 8 {
8 return 100; 9 return 100;
9 } 10 }
10 else 11 else
11 { 12 {
12 int ret; 13 int ret;
13 if (m_size == g_size) 14 if (m_size == g_size)
14 { 15 {
15 ret = m_fontsizes[m_size]*m_basesize; 16 ret = m_fontsizes[m_size]*m_basesize;
16 } 17 }
17 else if (g_size < 0) 18 else if (g_size < 0)
18 { 19 {
19 int f = -g_size; 20 int f = -g_size;
20 ret = (m_fontsizes[0]*m_basesize) >> (f/2); 21 ret = (m_fontsizes[0]*m_basesize) >> (f/2);
21 if (f%2) ret = (2*ret/3); 22 if (f%2) ret = (2*ret/3);
22 } 23 }
23 else 24 else
24 { 25 {
25 int f = g_size - m_maxsize + 1; 26 int f = g_size - m_maxsize + 1;