diff options
author | Thomas White <taw@bitwiz.org.uk> | 2014-09-19 23:35:12 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2014-09-19 23:35:12 +0200 |
commit | 6d3ba40ba7fc98e384e5ee5ca7d90832dde89c1e (patch) | |
tree | 569195a9cae03b0abee0ab91c021964aeb473137 /src/mainwindow.c | |
parent | c5068cb535c9088c0051917fe001564aa936deaf (diff) | |
parent | 2112709182f800d70ff2dc8374fcb337bcc89f27 (diff) |
Merge branch 'stylecascade' of ssh://git.bitwiz.org.uk/colloquium into stylecascade
Diffstat (limited to 'src/mainwindow.c')
-rw-r--r-- | src/mainwindow.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c index 22e4ce8..b9c9823 100644 --- a/src/mainwindow.c +++ b/src/mainwindow.c @@ -978,6 +978,7 @@ static gboolean draw_sig(GtkWidget *da, cairo_t *cr, { double xoff, yoff; int width, height; + int edit_slide_height; width = gtk_widget_get_allocated_width(GTK_WIDGET(da)); height = gtk_widget_get_allocated_height(GTK_WIDGET(da)); @@ -992,8 +993,9 @@ static gboolean draw_sig(GtkWidget *da, cairo_t *cr, cairo_fill(cr); /* Get the overall size */ - xoff = (width - p->slide_width)/2.0; - yoff = (height - p->slide_height)/2.0; + edit_slide_height = (p->slide_height/p->slide_width)*p->edit_slide_width; + xoff = (width - p->edit_slide_width)/2.0; + yoff = (height - edit_slide_height)/2.0; p->border_offs_x = xoff; p->border_offs_y = yoff; /* Draw the slide from the cache */ |