Skip to content

Commit fdeae96

Browse files
committed
Merge pull request #45 from chrisws/0_11_20
0 12 6
2 parents 8df8098 + e5a842d commit fdeae96

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+566
-424
lines changed

ChangeLog

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
2016-05-14 (0.12.6)
2+
Fix to prevent const overwriting another const
3+
Updated MID and REPLACE for performance
4+
POINT(0) and POINT(1) values now reset with each program run
5+
POINT(-x, -y) now provides access to the base screen image. For better
6+
performance use the IMAGE.SAVE sub command
7+
8+
2016-05-07 (0.12.6)
9+
Reverted LASTX/LASTY. Data was already accessible via POINT command
10+
Reverted getPixel from SCREEN for performance. Can still access this by passed -ve x/y values
11+
Reverted using var V_FUNC handling for int sys vars due to eval issues
12+
113
2016-04-26 (0.12.6)
214
Fixes for unit case sensitivity
315

samples/distro-examples/apps/calc.bas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ func showResult(result)
209209
rect out_x, out_y STEP w, h, COLOR bgnd FILLED
210210
rect out_x - 1, out_y - 1 STEP w + 1, h + 1, COLOR 2
211211

212-
local out_str = chr(27) + "[15 C" + result
212+
local out_str = result
213213
local out_str_w = textwidth(result)
214214
local x = (out_x + w) - out_str_w - textwidth("0")
215215

samples/distro-examples/examples/Circles_and_arcs.bas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
color 0,15
1+
color 1,2:cls
22
circle ymax/4,ymax/4,ymax/8
33
circle ymax/2,ymax/4,ymax/8 FILLED
44
circle ymax/4,ymax/2,ymax/8,.75

samples/distro-examples/examples/Predefined_Variables.bas

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
? cat(1);"Predefined Variables";cat(0)
2-
? "OS VER =0x"; HEX$(osver)
3-
? "SB VER =0x"; HEX$(sbver)
2+
? "SB VER ="; sbver
43
? "PI ="; pi
54
? "XMAX ="; xmax
65
? "YMAX ="; ymax

samples/distro-examples/games/UFO.bas

0 Bytes
Binary file not shown.

samples/distro-examples/games/sokoban.bas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ sub play_game(byref game)
514514

515515
game.game_over = false
516516
while game.game_over = false
517-
pause true: k = inkey
517+
k = inkey(1)
518518
if len(k) = 2 then
519519
ch = asc(right(k,1))
520520
select case ch

samples/distro-examples/graphics/3dtorus.bas

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,9 @@
66
' Jelly 2004
77
' Http://rel.betterwebber.com
88

9-
const Xmax = 640
10-
const Ymax = 480
119
const Xmid = Xmax/2
1210
const Ymid = Ymax/2
1311
const Lens = 256
14-
const PI = 3.141593
1512
const rings = 14
1613
const bands = 15
1714
const ringradius = 100

samples/distro-examples/graphics/Charts.bas

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
' CHART examples
33

44
const VN=10
5+
const LINECHART=1
6+
const BARCHART=2
57
dim v(1 to VN)
6-
78
randomize timer
89

910
cls

samples/distro-examples/graphics/Simple_3D.bas

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ for i=1 to 15
3333
calcPt
3434
line sx,sy
3535
next
36+
showpage
3637
end
3738

3839
'

samples/distro-examples/tests/array.bas

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,16 @@ if (sim(0) <> 50) then
6969
throw "dim sim not tasty"
7070
fi
7171

72+
rem ==6866== Source and destination overlap in memcpy(0xfc3f090, 0xfc3f096, 13)
73+
rem ==6866== at 0x4C32513: memcpy@@GLIBC_2.14 (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
74+
rem ==6866== by 0x48D4A3: memcpy (string3.h:53)
75+
rem ==6866== by 0x48D4A3: comp_text_line_let (scan.c:1874)
76+
77+
dim dots(1)
78+
dots(0).y = 100
79+
dots(0).dy = 1
80+
dots(0).y += dots(0).dy
81+
if (dots(0).y != 101) then
82+
throw "not 101 !!!"
83+
endif
7284

0 commit comments

Comments
 (0)