Skip to content

Few typos #2

@dumblob

Description

@dumblob

In void DaoxRenderer_DrawTask( DaoxRenderer *self, DaoxDrawTask *drawtask ), the variable j is only declared, but not used.

The declaration of void DaoxPathStyle_Convert( DaoxPathStyle *self, int buffer[DAOX_MAX_DASH+4] ), should be changed to void DaoxPathStyle_Convert( DaoxPathStyle *self, int buffer[DAOX_MAX_DASH+5] ) as everywhere else 5 is used for buffer size increase (in the function body, but also in the caller functions).

In source/dao_animation.c:53, the variables scale, rotate, and translate are unused.

In DaoxParticle* DaoxEmitter_AddParticle(...), there is

...
if( lifeSpan < 0.5*self->lifeSpan ) lifeSpan = 0.5*self->lifeSpan;
if( lifeSpan < 2.0*self->lifeSpan ) lifeSpan = 2.0*self->lifeSpan;
...

but it's semantically the same as the following (saving few instructions ;)):

...
if( lifeSpan < 2.0*self->lifeSpan ) lifeSpan = 2.0*self->lifeSpan;
...

or there is a typo and the line if( lifeSpan < 2.0*self->lifeSpan ) lifeSpan = 2.0*self->lifeSpan; should become if( lifeSpan > 2.0*self->lifeSpan ) lifeSpan = 2.0*self->lifeSpan;.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions