1 |
|
/* |
2 |
|
* clip_amiga.cpp - Clipboard handling, AmigaOS implementation |
3 |
|
* |
4 |
< |
* Basilisk II (C) 1997-1999 Christian Bauer |
4 |
> |
* Basilisk II (C) 1997-2000 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 |
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" |
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 |
67 |
|
|
68 |
|
void ClipInit(void) |
69 |
|
{ |
70 |
+ |
no_clip_conversion = PrefsFindBool("noclipconversion"); |
71 |
+ |
|
72 |
|
// Create clipboard IFF handle |
73 |
|
iffw = AllocIFF(); |
74 |
|
if (iffw) { |
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 |
|
} |