mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-02 00:42:24 +00:00
TWINE: cleanup in Renderer::circleFill
This commit is contained in:
parent
f251a088d5
commit
a81e496b7e
@ -1012,15 +1012,9 @@ void Renderer::circleFill(int32 x, int32 y, int32 radius, uint8 color) {
|
||||
double width;
|
||||
|
||||
if (ABS(currentLine) != radius) {
|
||||
width = sin(acos((float)currentLine / (float)radius));
|
||||
width = ABS(sin(acos((float)currentLine / (float)radius)) * radius);
|
||||
} else {
|
||||
width = 0;
|
||||
}
|
||||
|
||||
width *= radius;
|
||||
|
||||
if (width < 0) {
|
||||
width = -width;
|
||||
width = 0.0;
|
||||
}
|
||||
|
||||
_engine->_interface->drawLine((int32)(x - width), currentLine + y, (int32)(x + width), currentLine + y, color);
|
||||
|
Loading…
x
Reference in New Issue
Block a user