Code review adaptations, removed "cc65_" prefix from functions
This commit is contained in:
committed by
Oliver Schmidt
parent
435f417c64
commit
3d8c3a4948
@@ -70,16 +70,16 @@ void __fastcall__ tgi_arc (int x, int y, unsigned char rx, unsigned char ry,
|
||||
}
|
||||
|
||||
/* Calculate the start coords */
|
||||
x1 = x + tgi_imulround (rx, cc65_cos (sa));
|
||||
y1 = y - tgi_imulround (ry, cc65_sin (sa));
|
||||
x1 = x + tgi_imulround (rx, cos (sa));
|
||||
y1 = y - tgi_imulround (ry, sin (sa));
|
||||
do {
|
||||
sa += inc;
|
||||
if (sa >= ea) {
|
||||
sa = ea;
|
||||
done = 1;
|
||||
}
|
||||
x2 = x + tgi_imulround (rx, cc65_cos (sa));
|
||||
y2 = y - tgi_imulround (ry, cc65_sin (sa));
|
||||
x2 = x + tgi_imulround (rx, cos (sa));
|
||||
y2 = y - tgi_imulround (ry, sin (sa));
|
||||
tgi_line (x1, y1, x2, y2);
|
||||
x1 = x2;
|
||||
y1 = y2;
|
||||
|
||||
@@ -57,8 +57,8 @@ void __fastcall__ tgi_pieslice (int x, int y, unsigned char rx, unsigned char ry
|
||||
tgi_arc (x, y, rx, ry, sa, ea);
|
||||
|
||||
/* ... and close it */
|
||||
tgi_line (x, y, x + tgi_imulround (rx, cc65_cos (sa)), y - tgi_imulround (ry, cc65_sin (sa)));
|
||||
tgi_line (x, y, x + tgi_imulround (rx, cc65_cos (ea)), y - tgi_imulround (ry, cc65_sin (ea)));
|
||||
tgi_line (x, y, x + tgi_imulround (rx, cos (sa)), y - tgi_imulround (ry, sin (sa)));
|
||||
tgi_line (x, y, x + tgi_imulround (rx, cos (ea)), y - tgi_imulround (ry, sin (ea)));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user