Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
pwmt
zathura
Commits
527e2609
Commit
527e2609
authored
Nov 06, 2016
by
Sebastian Ramacher
Browse files
CS
parent
9b5dceac
Changes
2
Hide whitespace changes
Inline
Side-by-side
zathura/adjustment.c
View file @
527e2609
...
...
@@ -13,7 +13,7 @@ page_calc_height_width(zathura_document_t* document, double height,
g_return_val_if_fail
(
document
!=
NULL
&&
page_height
!=
NULL
&&
page_width
!=
NULL
,
0
.
0
);
double
scale
=
zathura_document_get_scale
(
document
);
if
(
rotate
&&
zathura_document_get_rotation
(
document
)
%
180
)
{
if
(
rotate
==
true
&&
zathura_document_get_rotation
(
document
)
%
180
!=
0
)
{
*
page_width
=
round
(
height
*
scale
);
*
page_height
=
round
(
width
*
scale
);
scale
=
MAX
(
*
page_width
/
height
,
*
page_height
/
width
);
...
...
zathura/render.c
View file @
527e2609
...
...
@@ -845,7 +845,7 @@ render_all(zathura_t* zathura)
/* unmark all pages */
const
unsigned
int
number_of_pages
=
zathura_document_get_number_of_pages
(
zathura
->
document
);
for
(
unsigned
int
page_id
=
0
;
page_id
<
number_of_pages
;
page_id
++
)
{
for
(
unsigned
int
page_id
=
0
;
page_id
<
number_of_pages
;
++
page_id
)
{
zathura_page_t
*
page
=
zathura_document_get_page
(
zathura
->
document
,
page_id
);
unsigned
int
page_height
=
0
,
page_width
=
0
;
...
...
Write
Preview
Supports
Markdown
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