mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 09:06:02 +01:00
CS
This commit is contained in:
parent
9b5dceac17
commit
527e260957
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue