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