aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/frame.h3
-rw-r--r--src/mainwindow.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/src/frame.h b/src/frame.h
index 764cddc..6ee748b 100644
--- a/src/frame.h
+++ b/src/frame.h
@@ -111,6 +111,9 @@ struct frame
/* True if this frame should be deleted on the next mouse click */
int empty;
+
+ /* True if the aspect ratio of this frame should be maintained */
+ int is_image;
};
diff --git a/src/mainwindow.c b/src/mainwindow.c
index 283bdc8..a74bf0a 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -1407,6 +1407,7 @@ static struct frame *create_frame(struct presentation *p, double x, double y,
fr->lop.y = y;
fr->lop.w = w;
fr->lop.h = h;
+ fr->is_image = 0;
return fr;
}
@@ -1782,6 +1783,7 @@ static void dnd_receive(GtkWidget *widget, GdkDragContext *drag_context,
p->start_corner_y, w, h);
fr->sc = sc;
fr->sc_len = len;
+ fr->is_image = 1;
show_hierarchy(p->cur_edit_slide->top, "");
rerender_slide(p);
set_selection(p, fr);