summaryrefslogtreecommitdiff
path: root/amiga/clipboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'amiga/clipboard.c')
-rwxr-xr-xamiga/clipboard.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/amiga/clipboard.c b/amiga/clipboard.c
index b09265003..b7450886f 100755
--- a/amiga/clipboard.c
+++ b/amiga/clipboard.c
@@ -17,6 +17,7 @@
*/
#include "desktop/gui.h"
+#include "desktop/plotters.h"
#include "desktop/selection.h"
#include "desktop/textinput.h"
#include "render/box.h"
@@ -245,7 +246,8 @@ bool gui_empty_clipboard(void)
return false;
}
-bool gui_add_to_clipboard(const char *text, size_t length, bool space)
+bool gui_add_to_clipboard(const char *text, size_t length, bool space,
+ const plot_font_style_t *fstyle)
{
/* This might crash or at least not work if gui_empty_clipboard isn't called first,
and gui_commit_clipboard after.
@@ -418,7 +420,8 @@ void ami_drag_selection(struct selection *s)
bool ami_easy_clipboard(char *text)
{
if(!gui_empty_clipboard()) return false;
- if(!gui_add_to_clipboard(text,strlen(text),false)) return false;
+ if(!gui_add_to_clipboard(text,strlen(text),false,plot_style_font))
+ return false;
if(!gui_commit_clipboard()) return false;
return true;