Revision 134
corrected dragging and flickering. now one or + pixels do not match
utils.c | ||
---|---|---|
35 | 35 |
int16_t abs16(int16_t x) { |
36 | 36 |
return (x >= 0) ? (int16_t)(x) : (int16_t)(-x); |
37 | 37 |
} |
38 |
|
|
39 |
uint16_t min(uint16_t a, uint16_t b){ |
|
40 |
return (b < a ? b : a); |
|
41 |
} |
Also available in: Unified diff