diff options
Diffstat (limited to 'deck.c')
-rw-r--r-- | deck.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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; +} |