mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 23:43:46 +01:00
Add a const
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
4be0983080
commit
8c5b4a83cf
@ -421,7 +421,7 @@ zathura_page_widget_draw(GtkWidget* widget, cairo_t* cairo)
|
|||||||
if (priv->surface != NULL || priv->thumbnail != NULL) {
|
if (priv->surface != NULL || priv->thumbnail != NULL) {
|
||||||
cairo_save(cairo);
|
cairo_save(cairo);
|
||||||
|
|
||||||
unsigned int rotation = zathura_document_get_rotation(document);
|
const unsigned int rotation = zathura_document_get_rotation(document);
|
||||||
switch (rotation) {
|
switch (rotation) {
|
||||||
case 90:
|
case 90:
|
||||||
cairo_translate(cairo, page_width, 0);
|
cairo_translate(cairo, page_width, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user