Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicki Myers <antihc3@gmail.com>2008-03-08 07:22:52 +0300
committerRicki Myers <antihc3@gmail.com>2008-03-08 07:22:52 +0300
commitb5cdd1f2d6e834dde4a0cdbec1a1bf2874e8a88d (patch)
tree88ef35606aac89a298df89673984c7967bfe9212 /source/blender/src/drawtext.c
parentb1fcb254c48d14fed31f315ca84830a2d5f78788 (diff)
Changed getClipbaord and putClipboard functions to be more ghost like
Changed getClipboard to GHOST_getClipboard and putClipboard to GHOST_putClipboard Removed ghost calls from blender and added the calls to winlay.h and ghostwinlay.c This cleand up casts in drawtext.c
Diffstat (limited to 'source/blender/src/drawtext.c')
-rw-r--r--source/blender/src/drawtext.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/source/blender/src/drawtext.c b/source/blender/src/drawtext.c
index b41bffcfa6f..a63e23b9886 100644
--- a/source/blender/src/drawtext.c
+++ b/source/blender/src/drawtext.c
@@ -84,8 +84,7 @@
#include "mydevice.h"
#include "blendef.h"
-
-#include "GHOST_C-api.h"
+#include "winlay.h"
#define TEXTXLOC 38
@@ -1363,7 +1362,7 @@ void txt_paste_clipboard(Text *text) {
void get_selection_buffer(Text *text)
{
- char *buff = (char*)getClipboard(1);
+ char *buff = getClipboard(1);
txt_insert_buf(text, buff);
}
@@ -1376,7 +1375,7 @@ void txt_copy_clipboard(Text *text) {
copybuffer[bufferlength] = '\0';
temp = winNewLine(copybuffer);
- putClipboard((GHOST_TInt8*)temp, 0);
+ putClipboard(temp, 0);
MEM_freeN(temp);
MEM_freeN(copybuffer);
copybuffer= NULL;
@@ -1539,7 +1538,7 @@ void winqreadtextspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
do_selection(st, G.qual&LR_SHIFTKEY);
if (txt_has_sel(text)) {
buffer = txt_sel_to_buf(text);
- putClipboard((GHOST_TInt8*)buffer, 1);
+ putClipboard(buffer, 1);
MEM_freeN(buffer);
}
do_draw= 1;