Project

General

Profile

Revision 134

corrected dragging and flickering. now one or + pixels do not match

View differences:

sprite.c
38 38
    sprite_set_y(p, y);
39 39
}
40 40

  
41
int sprite_get_w(const sprite_t *p){ return p->w; }
42
int sprite_get_h(const sprite_t *p){ return p->h; }
43

  
41 44
void sprite_draw(const sprite_t *p){
42 45
    for (int i = 0; i < p->w; i++) {
43 46
        for (int j = 0; j < p->h; j++) {

Also available in: Unified diff