diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2012-08-13 14:43:04 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2012-08-13 14:43:04 +0100 |
commit | d106091d6e5df26a83460ae484c31753b873368c (patch) | |
tree | 4312298dd2dd118c611c6ff5e0a144c7a0b0aa35 /amiga | |
parent | 68947c377ed358db310b32ee241db375e0b51de4 (diff) | |
download | netsurf-d106091d6e5df26a83460ae484c31753b873368c.tar.gz netsurf-d106091d6e5df26a83460ae484c31753b873368c.tar.bz2 |
Pass font plot style out to front end clipboard append function.
Diffstat (limited to 'amiga')
-rwxr-xr-x | amiga/clipboard.c | 7 |
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; |