mirror of
https://git.coom.tech/drummyfish/small3dlib.git
synced 2024-11-21 20:39:57 +01:00
Remove redundant macro
This commit is contained in:
parent
411b24248c
commit
fcd7956158
1 changed files with 1 additions and 4 deletions
5
s3l.h
5
s3l.h
|
@ -146,9 +146,6 @@ typedef int32_t S3L_Unit; /**< Units of measurement in 3D space. There is
|
|||
high to prevent overflow. */
|
||||
#endif
|
||||
|
||||
#define S3L_nonzero(value) ((value) != 0 ? (value) : 1) /**< prevents division
|
||||
by zero */
|
||||
|
||||
/** Predefined vertices of a cube to simply insert in an array. These come with
|
||||
S3L_CUBE_TRIANGLES and S3L_CUBE_TEXCOORDS. */
|
||||
#define S3L_CUBE_VERTICES\
|
||||
|
@ -1014,7 +1011,7 @@ void _S3L_drawFilledTriangle(
|
|||
|
||||
// draw the horizontal line
|
||||
|
||||
S3L_Unit rowLength = S3L_nonzero(rX - lX - 1); // prevent zero div
|
||||
S3L_Unit rowLength = S3L_nonZero(rX - lX - 1); // prevent zero div
|
||||
|
||||
S3L_Unit b0 = 0;
|
||||
S3L_Unit b1 = lSideUnitPos;
|
||||
|
|
Loading…
Reference in a new issue