diff options
author | Paul Gilbert | 2018-10-27 18:44:32 -0700 |
---|---|---|
committer | Paul Gilbert | 2018-12-08 19:05:59 -0800 |
commit | 9eb4debd158f0348c9a13f548c788d9f9d721f70 (patch) | |
tree | cd8d033e1e73671516b031738297cbfe8328b517 /engines/gargoyle/window_text_buffer.cpp | |
parent | 7bbedcd099dfe552547b97482c1d974318d3ce16 (diff) | |
download | scummvm-rg350-9eb4debd158f0348c9a13f548c788d9f9d721f70.tar.gz scummvm-rg350-9eb4debd158f0348c9a13f548c788d9f9d721f70.tar.bz2 scummvm-rg350-9eb4debd158f0348c9a13f548c788d9f9d721f70.zip |
GLK: Logic for keypress event handling
Diffstat (limited to 'engines/gargoyle/window_text_buffer.cpp')
-rw-r--r-- | engines/gargoyle/window_text_buffer.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/engines/gargoyle/window_text_buffer.cpp b/engines/gargoyle/window_text_buffer.cpp index fa8a7cced5..c322127b9f 100644 --- a/engines/gargoyle/window_text_buffer.cpp +++ b/engines/gargoyle/window_text_buffer.cpp @@ -21,6 +21,7 @@ */ #include "gargoyle/window_text_buffer.h" +#include "gargoyle/clipboard.h" #include "gargoyle/conf.h" #include "gargoyle/gargoyle.h" #include "gargoyle/screen.h" @@ -1155,7 +1156,7 @@ void TextBufferWindow::redraw() { if (selbuf && _copyPos) { Windows::_claimSelect = true; - copyTextToClipboard(_copyBuf, _copyPos); + g_vm->_clipboard->store(_copyBuf, _copyPos); for (i = 0; i < _copyPos; i++) _copyBuf[i] = 0; _copyPos = 0; @@ -1623,10 +1624,6 @@ int TextBufferWindow::calcWidth(glui32 *chars, Attributes *attrs, int startchar, return w; } -void TextBufferWindow::copyTextToClipboard(const glui32 *text, size_t len) { - // TODO -} - void TextBufferWindow::getSize(glui32 *width, glui32 *height) const { if (width) *width = (_bbox.width() - g_conf->_tMarginX * 2) / g_conf->_cellW; |