summaryrefslogtreecommitdiff
path: root/deck.c
diff options
context:
space:
mode:
Diffstat (limited to 'deck.c')
-rw-r--r--deck.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/deck.c b/deck.c
index c2d462f..be2558a 100644
--- a/deck.c
+++ b/deck.c
@@ -89,3 +89,11 @@ deck_get_slide_location (Deck *deck,
return nth_slide * (MARGIN + slide_height) + MARGIN;
}
+
+int
+deck_get_height (Deck *deck, GdkRectangle *viewport)
+{
+ int slide_height = get_slide_height (deck, viewport);
+
+ return N_SLIDES * slide_height + (N_SLIDES + 1) * MARGIN;
+}