We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 378c3bf commit 0d60ed2Copy full SHA for 0d60ed2
src/apple2/touch.c
@@ -10,7 +10,8 @@
10
#include <stdint.h>
11
12
/* Scaling tables for touch to convert 320x192 to 512x512 */
13
-uint16_t scaletx[]={
+
14
+/* uint16_t scaletx[]={
15
0,2,4,5,7,8,10,12,
16
13,15,16,18,20,21,23,24,
17
26,28,29,31,32,34,36,37,
@@ -50,9 +51,9 @@ uint16_t scaletx[]={
50
51
461,463,464,466,468,469,471,472,
52
474,476,477,479,480,482,484,485,
53
487,488,490,492,493,495,496,498,
-500,501,503,504,506,508,509,};
54
+500,501,503,504,506,508,509,}; */
55
-uint16_t scalety[]={
56
+/* uint16_t scalety[]={
57
510,507,504,502,499,496,494,491,
58
488,486,483,480,478,475,472,470,
59
467,464,462,459,456,454,451,448,
@@ -77,4 +78,4 @@ uint16_t scalety[]={
77
78
62,59,56,54,51,48,46,43,
79
40,38,35,32,30,27,24,22,
80
19,16,14,11,8,6,3,0,
-};
81
+}; */
src/screen_base.c
@@ -271,10 +271,10 @@ void screen_background(padRGB* theColor)
271
*/
272
void _screen_paint(unsigned short x, unsigned short y)
273
{
274
- // Currently we run out of memory on apple2, so this is temporarily disabled.
275
#ifndef __APPLE2__
276
- static unsigned short xStack[64];
277
- static unsigned char yStack[64];
+ // Currently we run out of memory on apple2, so this is temporarily disabled.
+ static unsigned short xStack[256];
+ static unsigned char yStack[192];
278
unsigned char stackentry = 1;
279
unsigned char spanAbove, spanBelow;
280
@@ -327,7 +327,7 @@ void _screen_paint(unsigned short x, unsigned short y)
327
x = xStack[stackentry];
328
y = yStack[stackentry];
329
}
330
- while (stackentry);
+ while (stackentry);
331
#endif
332
333
src/touch_base.c
@@ -35,6 +35,7 @@ extern uint16_t scalety[];
35
36
void touch_init(void)
37
38
+#ifndef __APPLE2__
39
if (strcmp(config.driver_mou,"NONE")==0)
40
return;
41
@@ -47,15 +48,18 @@ void touch_init(void)
47
48
POKE(0xD001,0);
49
/* POKE(0xD002,0); */
POKE(0xD003,0);
-#endif
+#endif /* __ATARI__ */
+#endif /* __APPLE2__ */
/**
* touch_allow - Set whether touchpanel is active or not.
60
void touch_allow(padBool allow)
61
62
63
/* // If mouse is off screen (due to previously being moved off screen, move onscreen to make visible. */
64
/* if (allow) */
65
/* { */
@@ -71,13 +75,15 @@ void touch_allow(padBool allow)
71
75
/* } */
72
76
73
TouchActive=allow;
+#endif
74
82
* touch_main - Process mouse events and turn into scaled touch events
83
84
void touch_main(void)
85
86
87
uint8_t lastbuttons;
88
padPt coord;
89
@@ -95,21 +101,26 @@ void touch_main(void)
95
101
Touch(&coord);
96
102
97
103
lastbuttons = mouse_data.buttons;
104
98
105
99
106
100
107
108
* touch_hide() - hide the mouse cursor
109
110
void touch_hide(void)
111
112
113
mouse_move(screen_w,screen_h);
114
115
116
117
118
* touch_done() - Stop the mouse driver
119
120
void touch_done(void)
121
122
123
if (mouse_present==true)
124
mouse_uninstall();
125
126
0 commit comments