ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/BeOS/clip_beos.cpp
(Generate patch)

Comparing BasiliskII/src/BeOS/clip_beos.cpp (file contents):
Revision 1.4 by cebix, 2001-02-02T20:52:57Z vs.
Revision 1.9 by gbeauche, 2005-01-30T21:42:13Z

# Line 1 | Line 1
1   /*
2   *  clip_beos.cpp - Clipboard handling, BeOS implementation
3   *
4 < *  Basilisk II (C) 1997-2001 Christian Bauer
4 > *  Basilisk II (C) 1997-2005 Christian Bauer
5   *
6   *  This program is free software; you can redistribute it and/or modify
7   *  it under the terms of the GNU General Public License as published by
# Line 54 | Line 54 | void ClipExit(void)
54  
55  
56   /*
57 + *  Mac application reads clipboard
58 + */
59 +
60 + void GetScrap(void **handle, uint32 type, int32 offset)
61 + {
62 +        D(bug("GetScrap handle %p, type %08x, offset %d\n", handle, type, offset));
63 + }
64 +
65 +
66 + /*
67   *  Mac application wrote to clipboard
68   */
69  
# Line 73 | Line 83 | void PutScrap(uint32 type, void *scrap,
83                                  if (no_clip_conversion) {
84  
85                                          // Only convert CR->LF
86 <                                        char *buf = new char[dest_length];
86 >                                        char *buf = new char[length];
87                                          for (int i=0; i<length; i++) {
88                                                  if (i[(char *)scrap] == 13)
89                                                          buf[i] = 10;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines