mirror of
https://github.com/irmen/prog8.git
synced 2024-11-27 03:50:27 +00:00
slight gfx optimizations
This commit is contained in:
parent
e4fe1d2b8d
commit
df3371b0f0
@ -141,21 +141,26 @@ graphics {
|
|||||||
byte decisionOver2 = 1-xx
|
byte decisionOver2 = 1-xx
|
||||||
|
|
||||||
while xx>=yy {
|
while xx>=yy {
|
||||||
|
ubyte cy_plus_yy = cy + yy
|
||||||
|
ubyte cy_min_yy = cy - yy
|
||||||
|
ubyte cy_plus_xx = cy + xx
|
||||||
|
ubyte cy_min_xx = cy - xx
|
||||||
|
|
||||||
for plotx in cx to cx+xx {
|
for plotx in cx to cx+xx {
|
||||||
plot(cy + yy)
|
plot(cy_plus_yy)
|
||||||
plot(cy - yy)
|
plot(cy_min_yy)
|
||||||
}
|
}
|
||||||
for plotx in cx-xx to cx-1 {
|
for plotx in cx-xx to cx-1 {
|
||||||
plot(cy + yy)
|
plot(cy_plus_yy)
|
||||||
plot(cy - yy)
|
plot(cy_min_yy)
|
||||||
}
|
}
|
||||||
for plotx in cx to cx+yy {
|
for plotx in cx to cx+yy {
|
||||||
plot(cy + xx)
|
plot(cy_plus_xx)
|
||||||
plot(cy - xx)
|
plot(cy_min_xx)
|
||||||
}
|
}
|
||||||
for plotx in cx-yy to cx {
|
for plotx in cx-yy to cx {
|
||||||
plot(cy + xx)
|
plot(cy_plus_xx)
|
||||||
plot(cy - xx)
|
plot(cy_min_xx)
|
||||||
}
|
}
|
||||||
yy++
|
yy++
|
||||||
if decisionOver2<=0
|
if decisionOver2<=0
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
%import c64lib
|
%import c64lib
|
||||||
%import c64graphics
|
%import c64graphics
|
||||||
%zeropage basicsafe
|
|
||||||
|
|
||||||
main {
|
main {
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
%import c64flt
|
%import c64flt
|
||||||
%import c64graphics
|
%import c64graphics
|
||||||
%option enable_floats
|
%option enable_floats
|
||||||
%zeropage basicsafe
|
|
||||||
|
|
||||||
|
|
||||||
main {
|
main {
|
||||||
|
Loading…
Reference in New Issue
Block a user