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

Comparing BasiliskII/src/AmigaOS/clip_amiga.cpp (file contents):
Revision 1.3 by cebix, 2000-04-10T18:52:34Z vs.
Revision 1.5 by cebix, 2001-02-02T20:52:57Z

# Line 1 | Line 1
1   /*
2   *  clip_amiga.cpp - Clipboard handling, AmigaOS implementation
3   *
4 < *  Basilisk II (C) 1997-2000 Christian Bauer
4 > *  Basilisk II (C) 1997-2001 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 18 | Line 18
18   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19   */
20  
21 + #include "sysdeps.h"
22 +
23   #include <exec/types.h>
24   #include <libraries/iffparse.h>
25   #include <devices/clipboard.h>
26   #include <proto/exec.h>
27   #include <proto/iffparse.h>
28  
27 #include "sysdeps.h"
29   #include "clip.h"
30 + #include "prefs.h"
31  
32   #define DEBUG 0
33   #include "debug.h"
# Line 35 | Line 37
37   static struct IFFHandle *iffw = NULL;
38   static struct ClipboardHandle *ch = NULL;
39   static bool clipboard_open = false;
40 + static bool no_clip_conversion;
41  
42  
43   // Conversion tables
# Line 64 | Line 67 | static const uint8 mac2iso[0x80] = {
67  
68   void ClipInit(void)
69   {
70 +        no_clip_conversion = PrefsFindBool("noclipconversion");
71 +
72          // Create clipboard IFF handle
73          iffw = AllocIFF();
74          if (iffw) {
# Line 117 | Line 122 | void PutScrap(uint32 type, void *scrap,
122                                  if (c < 0x80) {
123                                          if (c == 13)    // CR -> LF
124                                                  c = 10;
125 <                                } else
125 >                                } else if (!no_clip_conversion)
126                                          c = mac2iso[c & 0x7f];
127                                  *q++ = c;
128                          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines