Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
John Zhang
Okular
Commits
100be6fa
Commit
100be6fa
authored
Aug 15, 2003
by
Helio Chissini de Castro
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Change old QArray to QMemArray
svn path=/trunk/kdegraphics/kpdf/; revision=242827
parent
3fb39e38
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
kpdf/QOutputDev.h
kpdf/QOutputDev.h
+2
-1
kpdf/QOutputDevPixmap.cpp
kpdf/QOutputDevPixmap.cpp
+4
-4
kpdf/QOutputDevPixmap.h
kpdf/QOutputDevPixmap.h
+1
-1
No files found.
kpdf/QOutputDev.h
View file @
100be6fa
...
...
@@ -18,6 +18,7 @@
#include <stddef.h>
#include <qscrollview.h>
#include <qmemarray.h>
class
Object
;
...
...
@@ -174,7 +175,7 @@ private:
void
updateLineAttrs
(
GfxState
*
state
,
GBool
updateDash
);
void
doFill
(
GfxState
*
state
,
bool
winding
);
void
doClip
(
GfxState
*
state
,
bool
winding
);
int
convertPath
(
GfxState
*
state
,
QPointArray
&
points
,
QArray
<
int
>
&
lengths
);
int
convertPath
(
GfxState
*
state
,
QPointArray
&
points
,
Q
Mem
Array
<
int
>
&
lengths
);
int
convertSubpath
(
GfxState
*
state
,
GfxSubpath
*
subpath
,
QPointArray
&
points
);
};
...
...
kpdf/QOutputDevPixmap.cpp
View file @
100be6fa
...
...
@@ -386,7 +386,7 @@ void QOutputDevPixmap::updateFont ( GfxState *state )
void
QOutputDevPixmap
::
stroke
(
GfxState
*
state
)
{
QPointArray
points
;
QArray
<
int
>
lengths
;
Q
Mem
Array
<
int
>
lengths
;
// transform points
int
n
=
convertPath
(
state
,
points
,
lengths
);
...
...
@@ -433,7 +433,7 @@ void QOutputDevPixmap::eoFill ( GfxState *state )
void
QOutputDevPixmap
::
doFill
(
GfxState
*
state
,
bool
winding
)
{
QPointArray
points
;
QArray
<
int
>
lengths
;
Q
Mem
Array
<
int
>
lengths
;
// transform points
int
n
=
convertPath
(
state
,
points
,
lengths
);
...
...
@@ -476,7 +476,7 @@ void QOutputDevPixmap::eoClip ( GfxState *state )
void
QOutputDevPixmap
::
doClip
(
GfxState
*
state
,
bool
winding
)
{
QPointArray
points
;
QArray
<
int
>
lengths
;
Q
Mem
Array
<
int
>
lengths
;
// transform points
int
n
=
convertPath
(
state
,
points
,
lengths
);
...
...
@@ -525,7 +525,7 @@ void QOutputDevPixmap::doClip ( GfxState *state, bool winding )
// Then it connects subaths within a single compound polygon to a single
// point so that X can fill the polygon (sort of).
//
int
QOutputDevPixmap
::
convertPath
(
GfxState
*
state
,
QPointArray
&
points
,
QArray
<
int
>
&
lengths
)
int
QOutputDevPixmap
::
convertPath
(
GfxState
*
state
,
QPointArray
&
points
,
Q
Mem
Array
<
int
>
&
lengths
)
{
GfxPath
*
path
=
state
->
getPath
(
);
int
n
=
path
->
getNumSubpaths
(
);
...
...
kpdf/QOutputDevPixmap.h
View file @
100be6fa
...
...
@@ -176,7 +176,7 @@ private:
void
updateLineAttrs
(
GfxState
*
state
,
GBool
updateDash
);
void
doFill
(
GfxState
*
state
,
bool
winding
);
void
doClip
(
GfxState
*
state
,
bool
winding
);
int
convertPath
(
GfxState
*
state
,
QPointArray
&
points
,
QArray
<
int
>
&
lengths
);
int
convertPath
(
GfxState
*
state
,
QPointArray
&
points
,
Q
Mem
Array
<
int
>
&
lengths
);
int
convertSubpath
(
GfxState
*
state
,
GfxSubpath
*
subpath
,
QPointArray
&
points
);
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment